deploying to heroku - wbobeirne/nycda-ecommerce-server GitHub Wiki
- Run
heroku create, make sure you only run this once - Run
heroku addons:create heroku-postgresql:hobby-devto add Postgres - Add your environment variables by running
heroku config:set [CONFIG_VAR_KEY]=[config var value]for each config variable except theDB_*ones.
Do not run this command literally, you need to fill in the values - Run
git push heroku masterto deploy your application - Run
heroku opento open your app in the browser - If anything went wrong, check
heroku logs --tailto find any errors
- Run
git push heroku masterto deploy your application - Run
heroku opento open your app in the browser - If anything went wrong, check
heroku logs --tailto find any errors
If you want to import the watch data from part one, simply run:
heroku pg:backups:restore 'https://s3.us-east-2.amazonaws.com/wbobeirne-misc/ecommerce-heroku.dump' DATABASE_URL
If you need to restart your server, but don't have new code to deploy (For instance, you want to see error messages again from a failed build) run heroku restart