Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What if I want to deploy it for a server #40

Open
yarielg opened this issue Mar 29, 2020 · 3 comments
Open

What if I want to deploy it for a server #40

yarielg opened this issue Mar 29, 2020 · 3 comments

Comments

@yarielg
Copy link

yarielg commented Mar 29, 2020

It works pretty good on local
I want to deploy it as a server, so that I can get recent data as I want
What are the steps to do that?
mvn, java environment variables and so on

@nicolas2162
Copy link

i have the same concern here

@yarielg
Copy link
Author

yarielg commented Jul 1, 2020

My server is laravel and runs on gcp vm.
We installed jdk8 on gcp, and moved grib2json.cmd and grib2json.jar to /usr/local/bin, so that the vm can use the command.
If you navigate the grib2json in node_modules, you can find those files

and to run the command, I used this

$process = Process::fromShellCommandline(
 'grib2json -- data --names --output a.json a.grib2',
 null,
 ['JAVA_HOME' => '/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java']
);

The third parameter is to set the environment variable when run the grib2json command.
Note that as I run it on laravel, I didn't use npm grib2json directly

@claustres
Copy link

claustres commented Sep 1, 2020

Maybe you can have a look to our fork. In https://github.com/weacast/weacast-loader we use it on a server through docker images. More specifically we install what we need in the image to run it as a global command that is used by our ETL.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants