当设备尝试发送确认电子邮件时 Heroku 崩溃
2011-10-24T05:54:00+00:00 app[web.1]: Started POST "/users" for 69.136.182.141 at 2011-10-23 22:54:00 -0700
2011-10-24T05:54:00+00:00 app[web.1]: Processing by Devise::RegistrationsController#create as HTML
2011-10-24T05:54:00+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"ts2MkJf472PHTEcKjdD3P5YjBr/sWX3jTDZKjPZNYj0=", "user"=>{"username"=>"DerNalia", "email"=>"[not_telling]@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Register"}
2011-10-24T05:54:00+00:00 app[web.1]: Rendered devise/mailer/confirmation_instructions.html.erb (0.4ms)
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: Sent mail to [not_telling]@gmail.com (3003ms)
2011-10-24T05:54:03+00:00 app[web.1]: Completed 500 Internal Server Error in 3137ms
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 heroku[router]: POST swinglx.heroku.com/users dyno=web.1 queue=0 wait=0ms service=3147ms status=500 bytes=728
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: cache: [POST /users] invalidate, pass
知道是什么导致了这个问题吗?
heroku 可以在生产环境中运行吗?
我的生产 URL 是 SwingLX.com,尚未向 DNS 名称服务器交换机注册。
2011-10-24T05:54:00+00:00 app[web.1]: Started POST "/users" for 69.136.182.141 at 2011-10-23 22:54:00 -0700
2011-10-24T05:54:00+00:00 app[web.1]: Processing by Devise::RegistrationsController#create as HTML
2011-10-24T05:54:00+00:00 app[web.1]: Parameters: {"utf8"=>"✓", "authenticity_token"=>"ts2MkJf472PHTEcKjdD3P5YjBr/sWX3jTDZKjPZNYj0=", "user"=>{"username"=>"DerNalia", "email"=>"[not_telling]@gmail.com", "password"=>"[FILTERED]", "password_confirmation"=>"[FILTERED]"}, "commit"=>"Register"}
2011-10-24T05:54:00+00:00 app[web.1]: Rendered devise/mailer/confirmation_instructions.html.erb (0.4ms)
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: Sent mail to [not_telling]@gmail.com (3003ms)
2011-10-24T05:54:03+00:00 app[web.1]: Completed 500 Internal Server Error in 3137ms
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: Errno::ECONNREFUSED (Connection refused - connect(2)):
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 heroku[router]: POST swinglx.heroku.com/users dyno=web.1 queue=0 wait=0ms service=3147ms status=500 bytes=728
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]:
2011-10-24T05:54:03+00:00 app[web.1]: cache: [POST /users] invalidate, pass
Any idea what is causing the problem?
Does heroku run in production?
my production URL is SwingLX.com which hasn't registered yet with the DNS name server switch.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Heroku 默认不提供任何发送电子邮件的方式 - 例如本地 sendmail 或类似的。因此,您需要使用外部提供程序,例如他们的 SendGrid 插件 http://devcenter.heroku.com/articles/ sendgrid 您将通过它发送电子邮件。
Heroku does not provide any way of sending email by default - such as local sendmail or similar. Consequently you need to use an external provider such as their SendGrid addon http://devcenter.heroku.com/articles/sendgrid which you would send email through.