Host your nodejs application on Heroku
1 min readMar 28, 2018
- Firstly create your account on Heroku .
- Create a new application from the dashboard.
- Install heroku client through this https://devcenter.heroku.com/articles/heroku-cli
- Then login via the terminal
heroku login
- Run this
heroku git:remote -a 'projectName'
in your project directory. - To deploy ,
git add .
git commit -m “message”
- and then push your code to heroku server
git push heroku master
- The code is deployed automatically and the server is started on
https://projectName.herokuapp.com