1
我刚刚尝试将最新版本的Node应用程序部署到Heroku。我用let
从ES2015规范Heroku不服从scripts.start命令
它不停地未能为在启动过程中的Heroku跑:
2015-09-04T21:36:09.334796+00:00 heroku[web.1]: Starting process with command `node app.js`
然后坠毁时撞上了let
或const
关键字(我有“使用严格“设置)
然而,我的package.json被指定--harmony标志
"scripts": { "start": "node --harmony app.js", "test": "mocha test" },
10次中的9次,这是用户错误。我究竟做错了什么?
完美的答案。我解释过文档意味着Procfile被Package.json取代,但重新读取它们很明显,如果你有scripts.start集,就不需要* Procfile。谢谢。 – JonRed