Skip to content

Instantly share code, notes, and snippets.

@tpai
Last active August 29, 2015 14:13
Show Gist options
  • Save tpai/a38906eead0417486153 to your computer and use it in GitHub Desktop.
Save tpai/a38906eead0417486153 to your computer and use it in GitHub Desktop.
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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment