2013-10-29 1 views
0

누군가가 올바른 방향으로 나를 가르키면 Heroku에서 내 레일 앱을 시작할 수 있습니다. 도움을 주시면 감사하겠습니다. 1.9.3 Heroku를 Rails Monogdb와 함께 사용하기 위해 얇게

  • MongoDB를
  • 이에게 Heroku 로그를 나타냅니다
  • 얇은
  • 부트 스트랩
  • mongoid

    • 레일 : 내 응용 프로그램은 로컬로 작동하고

      는 다음을 사용합니다 앱이 action_mailer/railties를 찾을 수 없습니다. (그 중 아무도 일하지뿐만 아니라 action_mailer),하지만 지금은 다른 오류가

      2013-10-28T20:49:47.386564+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 43598` 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `require' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:3:in `block in <main>' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `new' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: /app/config/application.rb:4:in `require': cannot load such file -- action_mailer/railtie (LoadError) 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/application.rb:4:in `<top (required)>' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `require' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/config/environment.rb:4:in `<top (required)>' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:71:in `start' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval' 
      2013-10-28T20:49:49.024650+00:00 app[web.1]: from config.ru:1:in `<main>' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval' 
      2013-10-28T20:49:49.024857+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load' 
      2013-10-28T20:49:50.422948+00:00 heroku[web.1]: Process exited with status 1 
      2013-10-28T20:49:50.435779+00:00 heroku[web.1]: State changed from starting to crashed 
      2013-10-28T20:50:56.997008+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:50:30.641927+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:50:56.451159+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:50:51.845854+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      

      나는 application.rb 필요한 모든 railties 파일에 주석. 나는 또 다른 문제가 있다고 생각한다. 내가 놓치고있는 난간도 아니다. 사전 컴파일을 해제하여

      • 부트 스트랩
      • 자산 프리 D 파일러

      나는이 연설 :

      2013-10-28T20:53:51.478459+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e $RAILS_ENV -p 49593` 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `each' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `each' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `all' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/railties.rb:8:in `each' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/core_ext/string/inflections.rb:43:in `constantize' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `run' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:417:in `block (2 levels) in eager_load!' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:123:in `constantize' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:30:in `instance_exec' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `each' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:412:in `eager_load!' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.1.12/lib/active_support/inflector/methods.rb:124:in `block in constantize': uninitialized constant ActionMailer (NameError) 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:416:in `block in eager_load!' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/engine.rb:414:in `eager_load!' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:55:in `block in run_initializers' 
      2013-10-28T20:54:22.594177+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.7/app/mailers/devise/mailer.rb:1:in `<top (required)>' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `run_initializers' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/config/environment.rb:7:in `<top (required)>' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application/finisher.rb:51:in `block in <module:Finisher>' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `block in <main>' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/initializable.rb:54:in `each' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/railtie/configurable.rb:30:in `method_missing' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:3:in `require' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `initialize' 
      2013-10-28T20:54:22.594415+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.1.12/lib/rails/application.rb:96:in `initialize!'  
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.3.10/lib/rack/builder.rb:51:in `instance_eval' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `new' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `eval' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/bin/thin:6:in `<top (required)>' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from config.ru:1:in `<main>' 
      2013-10-28T20:54:22.594649+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/rack/adapter/loader.rb:33:in `load' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1 
      
      /lib/thin/controllers/controller.rb:71:in `start' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:187:in `run_command' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.5.1/lib/thin/runner.rb:152:in `run!' 
      2013-10-28T20:54:22.595084+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load' 
      2013-10-28T20:54:24.444797+00:00 heroku[web.1]: Process exited with status 1 
      2013-10-28T20:54:24.462296+00:00 heroku[web.1]: State changed from starting to crashed 
      2013-10-28T20:54:26.402911+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:54:29.217590+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:54:29.959011+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:55:04.161060+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:55:05.013362+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      2013-10-28T20:55:05.338644+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=trade-pl.herokuapp.com fwd="98.116.5.72" dyno= connect= service= status=503 bytes= 
      

      다른 문제는 내가 다 퉜다.

    답변

    0

    my answer here을 참조하십시오.

    간단히 말해서, 로컬로 작동하는지 절대적으로 확신합니까? 원격으로 실행하는 것과 정확히 같은 방식으로 실행하고 있습니까?

    +0

    답변 해 주셔서 감사합니다. 내 gemfile에서 "ruby '1.9.3'을 지정하고"번들 exec thin start "를 실행하면 응용 프로그램이 로컬로 작동합니다. 하지만 Heroku v의 보석 목록을 로컬에서 확인했는데 일치하지 않으므로 조사 할 것입니다. 특히 로컬에서는 액션 메일러 (3.1.3), 헬로 쿠에서는 액션 메일러 (0.6.1)입니다. – Scott

    +0

    다시 한번 감사드립니다. 그것은 내가 그것을 작동시킬 필요가있는 추진력이었다. 이유는 모르겠지만 heroku의 보석은 최신 버전을 다운로드하지 못했습니다. 이제 앱이 작동합니다. 건배. – Scott

    +0

    다행입니다. 이상한. 내 유일한 추측은 당신이 아마도 최신 Gemfile.lock을 저지르고 푸시하지 않았다는 것입니다. –

    관련 문제