Ghost博客的应用程序错误

我以前在我的网站上有DOCPAD 。 但是现在想要使用Ghost。 所以我打开了我的文件并删除了docpad。 然后我复制了ghost文件并运行了npm install ,我跟着教程一起在http://www.howtoinstallghost.com/how-to-install-ghost-on-heroku/上说,我需要添加这个我的项目

Procfile

 web: node index.js --production 

我做了这个除了我的生产设置

config.js

 production: { url: 'http://hipsterux.com', mail: {}, database: { client: 'postgres', connection: { host: process.env.POSTGRES_HOST, user: process.env.POSTGRES_USER, password: process.env.POSTGRES_PASSWORD, database: process.env.POSTGRES_DATABASE, port: '5432' }, debug: false }, server: { // Host to be passed to node's `net.Server#listen()` host: '0.0.0.0', // Port to be passed to node's `net.Server#listen()`, for iisnode set this to `process.env.PORT` port: process.env.PORT } }, 

本教程确实提到了填充variables,我做到了。

他们是一个部分或可能的错误。 我确实运行了heroku ps并得到了这个

 === web (1X): `node index.js --production` web.1: crashed 2014/02/11 10:28:48 (~ 1m ago) 

然后我跑了heroku logs ,得到了这个

 2014-02-11T17:50:05.345134+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.1ms) 2014-02-11T17:50:47.395237+00:00 app[web.1]: Started GET "/" for 98.173.1.66 at 2014-02-11 17:50:47 +0000 2014-02-11T17:50:47.408701+00:00 heroku[router]: at=info method=GET path=/ host=hipsterux.com request_id=dea3c298-70f1-45e4-bee8-d1133d074fe4 fwd="98.173.1.66" dyno=web.1 connect=1ms service=13ms status=200 bytes=3170 2014-02-11T17:50:47.396336+00:00 app[web.1]: Processing by HomeController#index as HTML 2014-02-11T17:50:47.396336+00:00 app[web.1]: Processing by HomeController#index as HTML 2014-02-11T17:50:47.397272+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.0ms) 2014-02-11T17:50:47.397272+00:00 app[web.1]: Rendered home/index.html.erb within layouts/application (0.0ms) 2014-02-11T17:50:47.398097+00:00 app[web.1]: Rendered layouts/_nav.html.erb (0.0ms) 2014-02-11T17:50:47.395237+00:00 app[web.1]: Started GET "/" for 98.173.1.66 at 2014-02-11 17:50:47 +0000 2014-02-11T17:50:47.398352+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.0ms) 2014-02-11T17:50:47.398097+00:00 app[web.1]: Rendered layouts/_nav.html.erb (0.0ms) 2014-02-11T17:50:47.398352+00:00 app[web.1]: Rendered layouts/_footer.html.erb (0.0ms) 2014-02-11T17:50:47.398619+00:00 app[web.1]: Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) 2014-02-11T17:50:47.398619+00:00 app[web.1]: Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms) 2014-02-11T17:50:47.778189+00:00 heroku[router]: at=info method=GET path=/assets/application-12747867e657ed75adbd7e34e5fac126.css host=hipsterux.com request_id=77c10885-e37b-47d8-97a5-8f694c2d6585 fwd="98.173.1.66" dyno=web.1 connect=12ms service=21ms status=200 bytes=103197 2014-02-11T17:50:49.685354+00:00 heroku[router]: at=info method=GET path=/favicon.ico host=hipsterux.com request_id=5ebdb01b-809a-4385-8167-7ee9d03170fe fwd="98.173.1.66" dyno=web.1 connect=7ms service=13ms status=200 bytes=0 2014-02-11T17:50:47.872706+00:00 heroku[router]: at=info method=GET path=/assets/vendor/custom.modernizr-23d32674d619702e1e6f721f8a0110bc.js host=hipsterux.com request_id=eb556af3-4bac-4abf-bb3a-7166fb48087f fwd="98.173.1.66" dyno=web.1 connect=2ms service=5ms status=200 bytes=8875 2014-02-11T17:59:54+00:00 heroku[slug-compiler]: Slug compilation started 2014-02-11T18:00:35.949284+00:00 heroku[api]: Deploy 8eeb4da by jgallardo720@gmail.com 2014-02-11T18:00:35.993249+00:00 heroku[api]: Release v20 created by jgallardo720@gmail.com 2014-02-11T18:00:36+00:00 heroku[slug-compiler]: Slug compilation finished 2014-02-11T18:00:38.768597+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2014-02-11T18:00:39.317225+00:00 app[web.1]: Exiting 2014-02-11T18:00:36.383456+00:00 heroku[web.1]: State changed from up to starting 2014-02-11T18:00:41.601036+00:00 heroku[web.1]: Process exited with status 0 2014-02-11T18:00:41.892044+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:00:45.000457+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:00:45.000457+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:00:45.000457+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:00:45.000457+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:01:42.318086+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:01:42.318303+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:01:44.313445+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:01:44.321830+00:00 heroku[web.1]: State changed from crashed to starting 2014-02-11T18:01:44.321034+00:00 heroku[web.1]: State changed from starting to crashed 2014-02-11T18:01:50.176265+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:01:55.064130+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:01:55.064130+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:01:55.064130+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:01:55.064130+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:02:50.698734+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:02:50.699106+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:02:52.380345+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:02:52.395869+00:00 heroku[web.1]: State changed from starting to crashed 2014-02-11T18:02:53.422199+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hipsterux.herokuapp.com request_id=5392ac5f-69f4-4a70-a506-7ca8c5fb7f40 fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2014-02-11T18:02:55.706704+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hipsterux.com request_id=6b0869ee-1a73-4ac1-a4ae-75f0c440822f fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2014-02-11T18:02:53.722434+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=hipsterux.herokuapp.com request_id=8d1ba006-1245-4761-b454-f3b97edd081d fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2014-02-11T18:19:34.348199+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hipsterux.com request_id=a2ba3171-8fd8-4e66-984a-fcac18b9e05d fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2014-02-11T18:26:03.064960+00:00 heroku[web.1]: State changed from crashed to starting 2014-02-11T18:26:06.605650+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:26:08.484215+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:26:08.484215+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:26:08.484215+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:26:08.484215+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:26:13.390665+00:00 heroku[api]: Add POSTGRES_USER config by jgallardo720@gmail.com 2014-02-11T18:26:13.419975+00:00 heroku[api]: Release v22 created by jgallardo720@gmail.com 2014-02-11T18:26:17.669462+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:26:20.344174+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:26:20.344174+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:26:20.344174+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:26:20.344174+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:26:28.386679+00:00 heroku[api]: Add POSTGRES_PASSWORD config by jgallardo720@gmail.com 2014-02-11T18:26:28.425811+00:00 heroku[api]: Release v23 created by jgallardo720@gmail.com 2014-02-11T18:26:32.714517+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:26:34.914249+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:26:34.914249+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:26:34.914249+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:26:34.914249+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:26:40.227308+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:26:42.296320+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:26:42.296320+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:26:42.296320+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:26:42.296320+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:27:01.521716+00:00 heroku[web.1]: Stopping all processes with SIGTERM 2014-02-11T18:27:03.778545+00:00 heroku[web.1]: Process exited with status 143 2014-02-11T18:27:07.013815+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:27:07.013626+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:27:08.255667+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:27:32.793553+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:27:32.794307+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:27:34.175685+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:27:40.726958+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:27:40.726758+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:27:41.857674+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:27:41.870841+00:00 heroku[web.1]: State changed from crashed to starting 2014-02-11T18:27:41.869800+00:00 heroku[web.1]: State changed from starting to crashed 2014-02-11T18:27:45.868355+00:00 heroku[web.1]: Starting process with command `node index.js --production` 2014-02-11T18:27:47.554877+00:00 app[web.1]: Ghost is running in development... 2014-02-11T18:27:47.554877+00:00 app[web.1]: Listening on 127.0.0.1:2368 2014-02-11T18:27:47.554877+00:00 app[web.1]: Ctrl+C to shut down 2014-02-11T18:27:47.554877+00:00 app[web.1]: Url configured as: http://hipsterux.com 2014-02-11T18:26:02.871695+00:00 heroku[api]: Add POSTGRES_HOST config by jgallardo720@gmail.com 2014-02-11T18:26:02.919527+00:00 heroku[api]: Release v21 created by jgallardo720@gmail.com 2014-02-11T18:26:37.221794+00:00 heroku[api]: Add POSTGRES_DATABASE config by jgallardo720@gmail.com 2014-02-11T18:26:37.245498+00:00 heroku[api]: Release v24 created by jgallardo720@gmail.com 2014-02-11T18:28:46.018403+00:00 heroku[web.1]: Stopping process with SIGKILL 2014-02-11T18:28:46.018216+00:00 heroku[web.1]: Error R10 (Boot timeout) -> Web process failed to bind to $PORT within 60 seconds of launch 2014-02-11T18:28:47.402359+00:00 heroku[web.1]: State changed from starting to crashed 2014-02-11T18:28:47.362968+00:00 heroku[web.1]: Process exited with status 137 2014-02-11T18:28:51.130683+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=hipsterux.com request_id=480a4181-0882-4ad5-a012-27bbeed255dc fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 2014-02-11T18:28:21.185094+00:00 heroku[router]: at=error code=H20 desc="App boot timeout" method=GET path=/ host=hipsterux.com request_id=e10b9259-fbac-428e-9e7c-1f2e6734b189 fwd="98.173.1.66" dyno= connect= service= status=503 bytes= 

也许我有configuration错误? 我问,因为服务器似乎试图启动发展。 但是,这不是为什么Procfile指定要做什么? 我在这里错过了什么?


边注

当我遵循相同的教程时,我实际上设法获得了一个在Heroku上成功运行的不同博客。 我现在认为,这个问题可能是由于DocPad或Rails中的文件遗留问题导致的,或者是我的应用程序连接了实际的数据库。