1/18/2015 - 5:44 PM

how to deploy app to heroku

how to deploy app to heroku

Note For Deploying App To Heroku

Heroku is a very convenient platform for developers to deploy their app, not only quickly but also simply!

App Deployment

  1. setup toolbelt

  2. modify the port setting of your app

    (process.env.PORT || 5000)

  3. define a Procfile into your root directory

    web: node index.js

  4. create repo in heroku

    heroku create

  5. push changes to remote branch of heroku

    git push heroku master

  6. scale to one dyno for test

    heroku ps:scale web=1

Ref: getting-started-with-nodejs

Change App Name

  1. go dashboard and change it

  2. updating git remotes

    // remove the old remote git remote rm heroku // fetch new one heroku git:remote -a [your-new-app-name]

Ref: renaming-apps