Production deployment and documentation for NyWater.info
This repository includes git submodules for the following repositories:
Each repository maintains its own README.md and deployment instructions - please consult each individual repository for development and deploy instructions.
- Run
sh update.sh
- this will pull the latest changes for each repository. Commit and merge the changes to this repository (nywater.info).
These are the instructions to deploy the entire NyWater.info stack. We assume basic knowledge of server provisioning and dependency installation.
-
Provision a server (we use DigitalOcean) running Ubuntu at version
16.04
with the following: -
Run the deploy instructions in the following submodules (order-specific)
nyw_data
nyw_web_api
nyw_web_client
-
Copy the client build to
/www
with the following commands:cp ~/nyw_deploy/nyw_web_client/dist/index.html /www/index.html
cp -R ~/nyw_deploy/nyw_web_client/dist/static /www/
-
Copy
nywater.info.NGINX
to/etc/nginx/sites-enabled/nywater.info
-
Run
sudo service restart nginx
- API documentation is available at nywater.info/docs