Skip to content

Deploying

Alex Hinds edited this page Feb 19, 2019 · 10 revisions

Ensure you lodge a PR that gets approval from one of the admins into the develop branch. After this is squash-merged via github, and the build successfully deploys to dev. dev can be merged into master for deployment.

Please follow below steps:

git checkout dev && git pull origin dev
npm version [major,minor,patch]
git checkout master && git pull origin master
git merge dev
git push origin master --tags && git push
git checkout dev && git push

How it works:

The app is built to the ./dist/public directory, and zipped. Azure's zip upload endpoint is used to upload and unzip to the public directory so it can be served by the backend. Docs are here.

Note: the recommended API for deployment is zipdeploy. This is used for the backend; it cannot be used for frontend also because it wipes the previous deployment.
The parent directory of public is where the API repo is deployed to using zipdeploy.
deploy.sh requires user credentials in the environment variables. Read about creating/updating user credentials here.

Clone this wiki locally