我的仓库上有这个版本的博客: https ://github.com/pandrei/pandrei_test/tree/master/pandrei-blog
(随意克隆和测试它)
作为本教程的结果:
http://blog.davydewaele.be/node-powered-git-blog-with-wheat
我在本地对其进行了测试,它运行正常,但是它在 Heroku 上崩溃了。
Heroku 日志:
2013-10-24T20:23:55.610646+00:00 heroku[router]: at=error code=H13 desc="Connection closed without response" method=GET path=/ host=pandrei-blog.herokuapp.com fwd="---.---.---.---" dyno=web.1 connect=0ms service=25ms status=503 bytes=0
2013-10-24T20:23:55.590168+00:00 app[web.1]: path.exists is now called `fs.exists`.
2013-10-24T20:23:55.601900+00:00 app[web.1]: ^
2013-10-24T20:23:55.601882+00:00 app[web.1]: callback(err);
2013-10-24T20:23:55.605427+00:00 app[web.1]: at ChildProcess.<anonymous> (/app/node_modules/wheat/node_modules/git-fs/lib/git-fs.js:208:7)
2013-10-24T20:23:55.601326+00:00 app[web.1]:
2013-10-24T20:23:55.605444+00:00 app[web.1]: at maybeClose (child_process.js:735:16)
2013-10-24T20:23:55.605439+00:00 app[web.1]: at ChildProcess.EventEmitter.emit (events.js:98:17)
2013-10-24T20:23:55.605456+00:00 app[web.1]: at Socket.EventEmitter.emit (events.js:95:17)
2013-10-24T20:23:55.605464+00:00 app[web.1]: at Pipe.close (net.js:466:12)
2013-10-24T20:23:55.605452+00:00 app[web.1]: at Socket.<anonymous> (child_process.js:948:11)
2013-10-24T20:23:55.605415+00:00 app[web.1]: TypeError: undefined is not a function
2013-10-24T20:23:55.601639+00:00 app[web.1]: /app/node_modules/wheat/node_modules/git-fs/lib/git-fs.js:208
2013-10-24T20:23:56.652015+00:00 heroku[web.1]: Process exited with status 8
2013-10-24T20:23:56.669381+00:00 heroku[web.1]: State changed from up to crashed
我刚刚开始使用 Heroku,但我真的不明白它为什么会崩溃。
有人可以解释这个原因或如何“调试”这个吗?
谢谢 !