how to deploy app to heroku
Heroku is a very convenient platform for developers to deploy their app, not only quickly but also simply!
modify the port setting of your app
(process.env.PORT || 5000)
define a Procfile into your root directory
web: node index.js
create repo in heroku
heroku create
push changes to remote branch of heroku
git push heroku master
scale to one dyno for test
heroku ps:scale web=1
go dashboard and change it
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