heroku start

https://devcenter.heroku.com/start

1.heroku create  //heroku 会多 一个app

2.进入heroku 该app 选择code 执行  heroku git:remote -a [appname] 添加或更新主分支(如果之前存在其他git分支)

3.git add .

4.git commit -m 'init'

5.git push heroku master

heroku ps:scale web=1

heroku open

heroku logs --tail

web: node index.js //启动项

原文地址:https://www.cnblogs.com/yuluhuang/p/3997077.html