简体   繁体   English

最近推送后,Heroku Ruby on Rails应用失败

[英]Heroku Ruby on Rails App failing after recent push

I tried to push an update to my heroku app from github. 我试图将更新从github推送到我的heroku应用程序。 I added some text and updated my gem file as follows: 我添加了一些文本并更新了我的gem文件,如下所示:

source 'https://rubygems.org'
ruby "1.9.3"
gem 'rails', '3.2.13'
gem 'jquery-rails' [...]

However my logs are showing 但是我的日志显示

"DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugs will be removed in Rails 4.0" “不建议使用警告:您在供应商/插件中有Rails 2.3样式的插件!在Rails 4.0中将删除对这些插件的支持”

I know Rails 4.0 was released late June... could this be causing my issue? 我知道Rails 4.0已于6月下旬发布...这可能引起我的问​​题吗?

Before that I see the following error lines: 在此之前,我看到以下错误行:

"/app/vendor/ruby-1.9.2/lib/ruby1.9.1/webrick/server.rb:90:in 'select' “ /app/vendor/ruby-1.9.2/lib/ruby1.9.1/webrick/server.rb:90:在“选择”中
[2013-08-08 05:04:37] ERROR SignalException: SIGTERM" [2013-08-08 05:04:37]错误SignalException:SIGTERM”

which is the first time I see an error in my logs. 这是我第一次在日志中看到错误。 Does anyone know if either of these are the issue? 有谁知道这两个问题吗?

Thanks so much! 非常感谢!

The deprecation warning is just that: a warning. 弃用警告仅是:警告。 Fix it, but it's not causing your issue. 修复它,但这不会引起您的问题。

And from your log file it doesn't seem like your app is "failing": when you push new code to Heroku it restarts the dynos. 从您的日志文件看来,您的应用似乎没有“失败”:当您将新代码推送到Heroku时,它会重新启动测功机。 Your running processes get a SIGTERM , with causes them to exit, and print the log you quote above. 您正在运行的进程将获得SIGTERM ,并导致它们退出,并打印上面引用的日志。 I suppose that right after that you see a new process spinning up, correct? 我想那之后,您会看到一个新的过程正在发展,对吗?

Expect such SIGTERM messages every time you deploy to Heroku, unless you install a handler for it and handle it yourself. 每次部署到Heroku时, SIGTERM期待此类SIGTERM消息,除非您为其安装处理程序并自行处理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM