Deploying Server on Heroku - Plateful/plateful-mobile GitHub Wiki

Current server: http://platefulserver.herokuapp.com/

####Creating the Server on Heroku

  1. Make sure all needed npm packages are in dependencies in the package.json file (heroku does not install devDependencies.
  2. Add a Procfile, which will tell heroku how to start your server: web: node server/app.js
  3. Create a heroku app: heroku create
  4. Push the app to heroku: git push heroku master

####Updating the Heroku Server:

  1. Make sure you have heroku added as a remote: git remote add heroku [email protected]:platefulserver.git
  2. Push all final revisions to Plateful:master
  3. Pull changes into your local branch: git pull --rebase upstream master
  4. Push changes to heroku: git push heroku master