【问题标题】:Heroku Rails 3 app crashHeroku Rails 3 应用程序崩溃
【发布时间】:2014-02-08 01:26:45
【问题描述】:

刚刚将一个简单的 Rails 3 应用程序的最新版本部署到 Heroku,当我尝试启动它时它不断崩溃。该错误似乎与日志的“Thin”gem 或“heroku[router]:”部分有关。任何想法或建议将不胜感激?

2014-02-05T06:24:38.338411+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-05T12:04:16.669527+00:00 heroku[web.1]: State changed from crashed to starting
2014-02-05T12:04:20.601552+00:00 heroku[web.1]: Starting process with command `bundle 
exec thin start -R config.ru -e $RAILS_ENV -p 40314`
2014-02-05T12:04:21.913325+00:00 app[web.1]: bundler: command not found: thin
2014-02-05T12:04:21.913325+00:00 app[web.1]: Install missing gem executables with 
`bundle install`
2014-02-05T12:04:23.263777+00:00 heroku[web.1]: Process exited with status 127
2014-02-05T12:04:23.276036+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-05T17:50:56.718434+00:00 heroku[web.1]: State changed from crashed to starting
2014-02-05T17:51:01.055269+00:00 heroku[web.1]: Starting process with command `bundle 
exec thin start -R config.ru -e $RAILS_ENV -p 6172`
2014-02-05T17:51:02.712737+00:00 app[web.1]: Install missing
gem executables with `bundle install`
2014-02-05T17:51:02.712496+00:00 app[web.1]: bundler: command not found: thin
2014-02-05T17:51:04.133893+00:00 heroku[web.1]: Process exited with status 127
2014-02-05T17:51:04.150001+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-05T22:43:04.240693+00:00 heroku[router]: at=error code=H10 desc="App crashed"  
method=GET path=/ host=treebook285.herokuapp.com request_id=6ed7479c-573e-4057- 
a2aa-d62bcb6078de fwd="76.175.73.170" dyno= connect= service= status=503 bytes=
2014-02-05T23:24:56.285710+00:00 heroku[web.1]: State changed from crashed to starting

【问题讨论】:

    标签: ruby-on-rails ruby ruby-on-rails-3 heroku deployment


    【解决方案1】:

    确保您的 Gemfile 中包含 gem 'thin' 并且您的 Procfile 应该看起来像这样

    web: bundle exec thin start -p $PORT
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-08-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-01
      • 1970-01-01
      • 2019-02-06
      • 2011-10-03
      相关资源
      最近更新 更多