ruby-on-rails - heroku 应用程序无法启动

标签 ruby-on-rails ruby-on-rails-3 heroku error-handling

我的应用程序已关闭,我不确定这次服务器在提示什么。任何人都可以提示我吗?下面的日志:

    2012-08-29T02:03:00+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 36518`
2012-08-29T02:03:05+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-08-29T02:03:05+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-08-29T02:03:08+00:00 app[web.1]: => Booting WEBrick
2012-08-29T02:03:08+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:36518
2012-08-29T02:03:08+00:00 app[web.1]: => Call with -d to detach
2012-08-29T02:03:08+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-29T02:03:08+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': /app/app/controllers/groups_controller.rb:55: syntax error, unexpected keyword_end, expecting $end (SyntaxError)
2012-08-29T02:03:08+00:00 app[web.1]: Exiting
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:313:in `depend_on'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `each'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:436:in `each'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:436:in `eager_load!'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/config.ru:4:in `require'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/config.ru:4:in `block in <main>'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/config.ru:1:in `new'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/config.ru:1:in `<main>'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2012-08-29T02:03:08+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/ra
ilties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-29T02:03:08+00:00 app[web.1]:   from script/rails:6:in `require'
2012-08-29T02:03:08+00:00 app[web.1]:   from script/rails:6:in `<main>'
2012-08-29T02:03:09+00:00 heroku[web.1]: Process exited with status 1
2012-08-29T02:03:09+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-29T02:13:19+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-29T02:13:21+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 41178`
2012-08-29T02:13:26+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-08-29T02:13:26+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-08-29T02:13:28+00:00 app[web.1]: => Booting WEBrick
2012-08-29T02:13:28+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:41178
2012-08-29T02:13:28+00:00 app[web.1]: => Call with -d to detach
2012-08-29T02:13:28+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-29T02:13:28+00:00 app[web.1]: Exiting
2012-08-29T02:13:28+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require': /app/app/controllers/groups_controller.rb:55: syntax error, unexpected keyword_end, expecting $end (SyntaxError)
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:313:in `depend_on'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `each'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:436:in `each'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:436:in `eager_load!'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/config.ru:4:in `require'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/config/environment.rb:5:in `<top (required)>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/config.ru:1:in `<main>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/config.ru:4:in `block in <main>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/config.ru:1:in `new'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2012-08-29T02:13:28+00:00 app[web.1]:   from script/rails:6:in `require'
2012-08-29T02:13:28+00:00 app[web.1]:   from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2012-08-29T02:13:28+00:00 app[web.1]:   from script/rails:6:in `<main>'
2012-08-29T02:13:29+00:00 heroku[web.1]: Process exited with status 1
2012-08-29T02:13:29+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-29T02:13:53+00:00 heroku[router]: Error H10 (App crashed) -> GET sleepy-sands-3221.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-29T02:13:53+00:00 heroku[router]: Error H10 (App crashed) -> GET sleepy-sands-3221.herokuapp.com/fa

vicon.ico dyno= queue= wait= service= status=503 bytes=

最佳答案

您的代码中有错误,您可能在开发过程中没有注意到,因为您没有使用或访问过该 Controller ,但是 heroku 在部署之前会检查错误,如果您的代码有任何问题,整个应用程序将无法运行。检查/app/app/controllers/groups_controller.rb 是否有语法错误。

关于ruby-on-rails - heroku 应用程序无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12170033/

相关文章:

ruby-on-rails - 即使字符串输入小于4,“对于字符变化(4)来说值太长”

mysql - 根据 SQL 中的俱乐部成员对俱乐部进行排序

ruby-on-rails - Ruby on Rails URL 格式

ruby-on-rails - Rails 中的自定义字段用作 future 条目的模板

ruby-on-rails - 在 Controller 之间共享一些 before_filters

ruby-on-rails - 如何使用 Heroku 自定义域设置电子邮件服务?

ruby-on-rails - MySQL2 gem 无法安装

ruby - rails 格式化正数和负数

ruby-on-rails-3 - 如何在 Active Admin 过滤器部分使用 HABTM 字段?

python - 无法在 Heroku 上上传我的 Flask 应用程序