|
|
|
# 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/` |
|
|
|
\ No newline at end of file |