上传部署
d:\nodejs\shurrik-express>git init
d:\nodejs\shurrik-express>git add .
d:\nodejs\shurrik-express>git commit -m 'init'
d:\nodejs\shurrik-express>heroku create shurrik-express -- stack cedar
d:\nodejs\shurrik-express>git push heroku master
d:\nodejs\shurrik-express>heroku ps:scale web=1
输出heroku日志:heroku logs -t
copy代码
添加Procfile文件
web: node app.js
修改并提交修改
heroku login
heroku logs -t showlog