Wednesday 6 June 2018

'heroku' project setup - free online deployment on cloud


heroku create
heroku login
heroku keys:add
heroku create
git push heroku
git remote add origin https://git.heroku.com/thawing-journey-96906.git. ==> thawing-journey is the id created from above command

==========================
heroku create ravinodejswebapp

git init
git add .
git commit -m 'heroku setup'
heroku login
heroku git:remote -a ravinodejswebapp
git push heroku master


Above highlighted commands would be repeated if we do any changes to the code and want to redeploy latest code.

No comments:

Post a Comment