新手问题 RailsTutorial 3rd 中 Email Configuration 一节 推送到 Heroku 报错!什么原因?

q6770570 · November 02, 2015 · Last by dc2000 replied at November 02, 2015 · 3246 hits

An error occurred in the application and your page could not be served. Please try again in a few moments.

If you are the application owner, check your logs for details. 网页显示如上 代码如下

logs 如下。

2015-11-02T04:59:03.089671+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-dusk-9465.herokuapp.com request_id=15a18d6b-512f-4117-b079-d9e1bb9ab3ed fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
2015-11-02T04:59:13.236053+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-dusk-9465.herokuapp.com request_id=2f1c6e99-a59b-48a4-bbdb-08488bbb5da9 fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
2015-11-02T04:58:48.816963+00:00 heroku[web.1]: State changed from crashed to starting
2015-11-02T05:12:37.348796+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by [email protected]
2015-11-02T05:12:39.845078+00:00 heroku[run.7188]: Awaiting client
2015-11-02T05:12:39.866499+00:00 heroku[run.7188]: Starting process with command `bundle exec rake db:migrate`
2015-11-02T05:12:40.212797+00:00 heroku[run.7188]: State changed from starting to up
2015-11-02T05:12:44.368065+00:00 heroku[run.7188]: Process exited with status 0
2015-11-02T05:12:44.382043+00:00 heroku[run.7188]: State changed from up to complete
2015-11-02T05:12:56.612357+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=aqueous-dusk-9465.herokuapp.com request_id=7e15d769-1c39-4259-85d1-67b2723a68ef fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
2015-11-02T05:12:57.470174+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=aqueous-dusk-9465.herokuapp.com request_id=5fbc9fa4-da6e-4b3a-a716-7f88948ba86d fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
2015-11-02T05:16:47.360027+00:00 heroku[api]: Scale to web=0 by [email protected]
2015-11-02T05:16:48.001575+00:00 heroku[web.1]: State changed from crashed to down
2015-11-02T05:23:35.321366+00:00 heroku[api]: Deploy 225a6ad by [email protected]
2015-11-02T05:23:35.321366+00:00 heroku[api]: Release v16 created by [email protected]
2015-11-02T05:23:35.476068+00:00 heroku[slug-compiler]: Slug compilation started
2015-11-02T05:23:35.476077+00:00 heroku[slug-compiler]: Slug compilation finished
2015-11-02T05:23:57.937560+00:00 heroku[api]: Starting process with command `bundle exec rake db:migrate` by [email protected]
2015-11-02T05:24:00.547123+00:00 heroku[run.9500]: Awaiting client
2015-11-02T05:24:00.590038+00:00 heroku[run.9500]: Starting process with command `bundle exec rake db:migrate`
2015-11-02T05:24:05.199660+00:00 heroku[run.9500]: Process exited with status 0
2015-11-02T05:24:05.213728+00:00 heroku[run.9500]: State changed from up to complete
2015-11-02T05:24:00.936396+00:00 heroku[run.9500]: State changed from starting to up
2015-11-02T05:24:33.061411+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/" host=aqueous-dusk-9465.herokuapp.com request_id=18e5c684-ffa6-47da-bda1-50be010fab80 fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
2015-11-02T05:24:33.834176+00:00 heroku[router]: at=error code=H14 desc="No web processes running" method=GET path="/favicon.ico" host=aqueous-dusk-9465.herokuapp.com request_id=3bebda38-f74a-4241-87bf-6089ba9aa1ab fwd="36.63.97.104" dyno= connect= service= status=503 bytes=
dengliangdeMacBook-Pro:sample_app dengliang$ 

503 错误?说明服务端没 Svever 响应请求。你的服务端的服务启动没有?

你的 Heroku 账户里得安装一个 SendGrid 插件。然后做一些配置才能生效吧。

#2 楼 @dc2000 dengliangdeMacBook-Pro:sample_app dengliang$ heroku addons:add sendgrid:starter WARNING: heroku addons:add has been deprecated. Please use heroku addons:create instead. ! Please verify your account to install this add-on plan (please enter a credit card) For more information, see https://devcenter.heroku.com/categories/billing Verify now at https://heroku.com/verify dengliangdeMacBook-Pro:sample_app dengliang$ heroku addons:create sendgrid:starter ! Please verify your account to install this add-on plan (please enter a credit card) For more information, see https://devcenter.heroku.com/categories/billing Verify now at https://heroku.com/verify

我的 pdf 买的时候买错了。买的是第 2 版,能否留个联系方式?想参考一下第 3 版的内容

6 Floor has deleted

不要交流盗版的获取渠道。

#4 楼 @q6770570 上面网站提示到 hreoku 网站上填支付卡的信息做 验证。你去网上搜一个支付卡的信息,验证一下,验证之后 heroku 网站才允许你添加 SendGrid 插件的。

You need to Sign in before reply, if you don't have an account, please Sign up first.