1
我正在部署已在與我的產品環境相同的臨時環境中測試的代碼。代碼在分段中正確部署,但之後無法部署到產品中。我收到以下堆棧跟蹤:Git部署未能啓動應用程序不確定原因
2017-01-10T03:57:42.481294+00:00 heroku[web.3]: Restarting
2017-01-10T03:57:42.482078+00:00 heroku[web.3]: State changed from up to starting
2017-01-10T03:57:42.558898+00:00 heroku[web.1]: Restarting
2017-01-10T03:57:42.559519+00:00 heroku[web.1]: State changed from up to starting
2017-01-10T03:57:42.574467+00:00 heroku[web.2]: Restarting
2017-01-10T03:57:42.574467+00:00 heroku[web.2]: State changed from up to starting
2017-01-10T03:57:43.096202+00:00 heroku[web.1]: Stopping all processes with SIGTERM
2017-01-10T03:57:43.224722+00:00 heroku[web.1]: Process exited with status 0
2017-01-10T03:57:43.182174+00:00 heroku[web.3]: Stopping all processes with SIGTERM
2017-01-10T03:57:43.253740+00:00 heroku[web.2]: Stopping all processes with SIGTERM
2017-01-10T03:57:43.368835+00:00 heroku[web.2]: Process exited with status 0
2017-01-10T03:57:43.309209+00:00 heroku[web.3]: Process exited with status 0
2017-01-10T03:57:49.095054+00:00 heroku[web.1]: Starting process with command `node app.js`
2017-01-10T03:57:49.250082+00:00 heroku[web.2]: Starting process with command `node app.js`
2017-01-10T03:57:51.165665+00:00 app[web.2]: Required New Relic
2017-01-10T03:57:51.508858+00:00 app[web.1]: Required New Relic
2017-01-10T03:57:52.218712+00:00 app[web.2]: fs.js:844
2017-01-10T03:57:52.218722+00:00 app[web.2]: return binding.stat(pathModule._makeLong(path));
2017-01-10T03:57:52.218722+00:00 app[web.2]: ^
2017-01-10T03:57:52.218723+00:00 app[web.2]:
2017-01-10T03:57:52.218726+00:00 app[web.2]: Error: ENOENT: no such file or directory, stat '/app/node_modules/.bin/_mocha'
2017-01-10T03:57:52.218727+00:00 app[web.2]: at Error (native)
2017-01-10T03:57:52.218727+00:00 app[web.2]: at Object.fs.statSync (fs.js:844:18)
2017-01-10T03:57:52.218728+00:00 app[web.2]: at /app/node_modules/include-all/index.js:48:12
2017-01-10T03:57:52.218728+00:00 app[web.2]: at Array.forEach (native)
2017-01-10T03:57:52.218729+00:00 app[web.2]: at requireAll (/app/node_modules/include-all/index.js:44:9)
2017-01-10T03:57:52.218729+00:00 app[web.2]: at /app/node_modules/include-all/index.js:54:23
2017-01-10T03:57:52.218730+00:00 app[web.2]: at Array.forEach (native)
2017-01-10T03:57:52.218730+00:00 app[web.2]: at requireAll (/app/node_modules/include-all/index.js:44:9)
2017-01-10T03:57:52.218731+00:00 app[web.2]: at buildDictionary (/app/node_modules/sails-build-dictionary/index.js:68:14)
2017-01-10T03:57:52.218732+00:00 app[web.2]: at Array.async.auto.nodeModulesFolder (/app/node_modules/sails/lib/hooks/moduleloader/index.js:379:27)
2017-01-10T03:57:52.218731+00:00 app[web.2]: at Function.module.exports.optional (/app/node_modules/sails-build-dictionary/index.js:160:9)
2017-01-10T03:57:52.218732+00:00 app[web.2]: at /app/node_modules/sails/node_modules/async/lib/async.js:484:38
2017-01-10T03:57:52.218733+00:00 app[web.2]: at _each (/app/node_modules/sails/node_modules/async/lib/async.js:46:13)
2017-01-10T03:57:52.218734+00:00 app[web.2]: at Hook.bound [as loadUserHooks] (/app/node_modules/sails/node_modules/lodash/dist/lodash.js:729:21)
2017-01-10T03:57:52.218733+00:00 app[web.2]: at Object.async.auto (/app/node_modules/sails/node_modules/async/lib/async.js:455:9)
2017-01-10T03:57:52.218734+00:00 app[web.2]: at Hook.loadUserHooks (/app/node_modules/sails/lib/hooks/moduleloader/index.js:363:13)
2017-01-10T03:57:52.309838+00:00 heroku[web.2]: State changed from starting to crashed
它在抱怨上正常工作的臨時服務器多數民衆贊成在沒有安裝包,所以我不知道這是錯誤。 (我也嘗試在我的prod服務器上安裝它)我很好奇,如果任何人有任何想法我應該做的。