Created using the Koop CLI template. See the specification for more details.
Locally (not on the server):
- Edit the host in
ecosystem.config.jsif needed - Set up your DNS to point to the new server
- Run
yarn run provision - Run
yarn run deploy
On the server...
In the app directory (current/):
- Run
yarn run pm2 startup, and copy the command it outputs
As root:
- Paste the command copied above
- Set up nginx or some other software to serve the website (see NEMO's prod setup guide for an example)
In the app directory (current/):
yarn run serveyarn run pm2 saveto commit the app to start automatically on server reboot
Locally (not on the server):
- Push any new commits
- Run
yarn run deploy
In the server app directory (current/):
yarn run pm2 statusto check if what's running
Tip: When developing locally, link the Provider so you don't need to keep reinstalling it:
cd koop-provider-nemo
yarn link
cd ../nemo-koop
yarn link koop-provider-nemoThis project uses the Koop CLI to set up the dev server:
yarn start
The server will be running at http://localhost:8080 or at the port specified at the configuration.
For more details, check the Koop CLI documentation.