Our front-end repository is at here project-416.
This back-end repository is deployed in a domain. Note that only Back End is deployed. Our front-end repository will be deployed through Heroku.
This repository is deployed on Heroku. Thus, whenever we make pull request on master branch it will be updated and deployed automatically.
-
To take the heroku app offline, remove the dyno with the command:
heroku ps:scale web=0 -
To restart the dyno:
heroku dyno:restart -
To take the heroku app online once again:
heroku ps:scale web=1 -
To build based on the code pushed to master branch:
git push heroku master
- Go to
.envfile. - If you are developing on Localhost, change
NODE_ENVtodevelopment - Before you push to master, change
NODE_ENVtoproduction
command: npm run dev