Skip to content

Latest commit

 

History

History
64 lines (48 loc) · 1.26 KB

DEPLOYMENT.md

File metadata and controls

64 lines (48 loc) · 1.26 KB

Silma

This guide includes the detail to perform a productive deployment of project Silma.

Production for Heroku

  1. Make sure to be in production branch:
git checkout production
  1. If needed add a remote to the local repository.
heroku git:remote -a silma
  1. To easily deploy all changes made in master, run a shell script that automatically builds the project and deploys to heroku:
bash deploy.sh
# or
sudo sh deploy.sh

Note: make sure to be at the top of the project

Alternative

If for some reason you need to do this manually, do the following

  1. Make sure you pull all changes made in master:
git pull origin master
  1. Go to the file back/.gitignore and remove the dist line.

  2. Build the project for production:

Note: make sure to be at the top of the project

npm run build-prod

This will create files inside back/dist

  1. Push your changes to this branch:
git add .
git commit -m "Build for production"
git push
  1. Push your production code to Heroku:
heroku login
git push heroku production:master
Visualize your changes

Open app in browser: https://silma.herokuapp.com

Also you can check logs from heroku:

heroku logs --tail