Sunday, December 4, 2016

Deploy your nodeJS app to the Heroku server in a minutes.

Just create an account to the heroku site
- https://dashboard.heroku.com/

Then download the heroku CLI and install it in your machine
- https://devcenter.heroku.com/articles/getting-started-with-nodejs#set-up

Now open the your terminal and type the following code to deploy your App

- heroku login
- heroku create YourAppName
- cd LocalPCproject/
- git init
- heroku git:remote -a YourAppName
- git add .
- git commit -am "make it better"
- git push heroku master
- heroku open

That's it.

If you change something in your app then deploy it again

- git add .
- git commit -am "make it better"
- git push heroku master

Hope this helps

No comments:

Post a Comment