|
|
|
# Deployment
|
|
|
|
|
|
|
|
* need `dotenv` package compatible with the `node` version installed on the server
|
|
|
|
* `yarn add -D dotenv@10.0.0`
|
|
|
|
* create a `.env.local` file in the project root, containing
|
|
|
|
* `BASE_URL=/covid-sim/`
|
|
|
|
* build
|
|
|
|
* `yarn build`
|
|
|
|
* install
|
|
|
|
* `rm -fr /var/www/where2test.de/covid-sim/\\\* && cp -r dist/\\\* /var/www/where2test.de/covid-sim/`
|
|
|
|
|
|
|
|
`yarn add -D dotenv@10.0.0`
|
|
|
|
# Data import
|
|
|
|
|
|
|
|
* create a `.env.local` file in the project root, containing
|
|
|
|
## 1. On `hemera`
|
|
|
|
|
|
|
|
`BASE_URL=/covid-sim/`
|
|
|
|
* generate the data on hemera
|
|
|
|
* create the summaries: `./collect.sh Dresden`
|
|
|
|
* upload the data folder and `summaries.zip` to vlsweb6
|
|
|
|
* `rsync -rav summaries.zip output-dresden vlsweb6b:/var/www/where2test.de/covid-sim-data/battery/v16/calibration/dresden/`
|
|
|
|
|
|
|
|
* build
|
|
|
|
## 2. On the webserver
|
|
|
|
|
|
|
|
`yarn build`
|
|
|
|
* unzip the summaries into the final output folder
|
|
|
|
|
|
|
|
* install
|
|
|
|
```plaintext
|
|
|
|
cd /var/www/where2test.de/covid-sim-data/battery/v16/calibration/dresden/output-dresden
|
|
|
|
unzip ../summaries.zip
|
|
|
|
```
|
|
|
|
|
|
|
|
* fix start and end dates in `metadata.yaml`
|
|
|
|
|
|
|
|
`rm -fr /var/www/where2test.de/covid-sim/* && cp -r dist/* /var/www/where2test.de/covid-sim/` |
|
|
\ No newline at end of file |
|
|
|
## 3. in the browser
|
|
|
|
* reload with clean cache
|
|
|
|
* hope it works |
|
|
\ No newline at end of file |