When deploying the app for the first time ensure you have run the following steps in order:
heroku create
heroku addons:create mongolab
heroku config:set NPM_CONFIG_PRODUCTION=false
git push heroku master
heroku open
After that simply git commit
and git push heroku master
.
Ensure that you add any relevant environment variables to heroku with heroku config:set
, eg:
heroku config:set AWS_BUCKET_NAME=wdi-project-4