使用heroku-buildpack我能够成功部署heroku rails应用程序。
节点应用程序检测到的消息在部署时显示,但无法解决错误。
由于以下错误,Server.js无法启动节点服务器。
2014-11-17T09:26:11.462899+00:00 app[web.1]: /app/node_modules/express/node_modules/connect/node_modules/http-errors/node_modules/statuses/codes.json:2
2014-11-17T09:26:11.463137+00:00 app[web.1]: "100": "Continue",
2014-11-17T09:26:11.463224+00:00 app[web.1]: ^
2014-11-17T09:26:11.463309+00:00 app[web.1]:
2014-11-17T09:26:11.463396+00:00 app[web.1]: node.js:134
2014-11-17T09:26:11.463436+00:00 app[web.1]: throw e; // process.nextTick error, or 'error' event on first tick
2014-11-17T09:26:11.463477+00:00 app[web.1]: ^
2014-11-17T09:26:11.464939+00:00 app[web.1]: SyntaxError: Unexpected token :
2014-11-17T09:26:11.464942+00:00 app[web.1]: at Module._compile (module.js:397:25)
2014-11-17T09:26:11.464943+00:00 app[web.1]: at Object..js (module.js:408:10)
2014-11-17T09:26:11.464945+00:00 app[web.1]: at Module.load (module.js:334:31)
2014-11-17T09:26:11.464947+00:00 app[web.1]: at Function._load (module.js:293:12)
2014-11-17T09:26:11.464949+00:00 app[web.1]: at require (module.js:346:19)
2014-11-17T09:26:11.464950+00:00 app[web.1]: at Object.<anonymous> (/app/node_modules/express/node_modules/connect/node_modules/http-errors/node_modules/statuses/index.js:2:13)
2014-11-17T09:26:11.464952+00:00 app[web.1]: at Module._compile (module.js:402:26)
2014-11-17T09:26:11.464953+00:00 app[web.1]: at Object..js (module.js:408:10)
2014-11-17T09:26:11.464955+00:00 app[web.1]: at Module.load (module.js:334:31)
2014-11-17T09:26:11.464956+00:00 app[web.1]: at Function._load (module.js:293:12)
2014-11-17T09:26:12.254612+00:00 heroku[web.1]: Process exited with status 1
2014-11-17T09:26:12.256430+00:00 heroku[web.1]: State changed from starting to crashed