How to Deploy a Node.js App to Heroku


Improve your writing skills in 5 minutes a day with the Daily Writing Tips email newsletter.

Below you’ll find the basic steps to deploy a Node.js (should apply to other languages and frameworks as well) on Heroku.

It assumes you have Git and Heroku toolbelt installed. You can view a more detailed tutorial here.

1. Create the app locally (you can view a “Hello World” example here)
2. git init
3. heroku create appname
4. git push heroku master
5. heroku ps:scale web=1

You can then use ‘heroku open’ to launch and test it.

One thought on “How to Deploy a Node.js App to Heroku

Leave a Reply

Your email address will not be published. Required fields are marked *