Error H10 crashing Heroku app - ruby-on-rails

I'm afraid I'm totally at a loss for why my rails app is crashing on Heroku. It's working fine on my development environment, and I can't see anything obvious in the logs. What am I missing?
Here is the Heroku log:
2012-08-16T19:19:08+00:00 app[web.1]: => Booting WEBrick
2012-08-16T19:19:08+00:00 app[web.1]: => Call with -d to detach
2012-08-16T19:19:08+00:00 app[web.1]: Exiting
2012-08-16T19:19:08+00:00 app[web.1]: => Rails 3.2.8 application starting in production on http://0.0.0.0:33240
2012-08-16T19:19:08+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-16T19:19:08+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:317:in `rescue in depend_on': No such file to load -- CSV (LoadError)
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:312:in `depend_on'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:438:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/engine.rb:436:in `eager_load!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `run'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/application.rb:136:in `initialize!'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/initializable.rb:54:in `each'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-08-16T19:19: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-16T19:19:08+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-08-16T19:19: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-16T19:19:08+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-16T19:19: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-16T19:19:08+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-16T19:19: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-16T19:19: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-16T19:19: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-16T19:19: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-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:46:in `app'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands/server.rb:70:in `start'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `tap'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.8/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-16T19:19:08+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-16T19:19:08+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-16T19:19:09+00:00 heroku[web.1]: Process exited with status 1
2012-08-16T19:19:09+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-16T19:19:16+00:00 heroku[run.1]: Process exited with status 0
2012-08-16T19:19:16+00:00 heroku[run.1]: State changed from up to complete
2012-08-16T19:19:37+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-16T19:19:38+00:00 heroku[router]: Error H10 (App crashed) -> GET fierce-tor-1874.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
Ashers-MacBook-Pro%

Maybe you wrote
gem 'CSV'
in Gemfile ? It should be downcase: gem 'csv'.
Look here

Related

Rails Heroku App won't Load (Error Code =H10) Rails Tutorial

Everything was fine with my Heroku app deployment for the duration of my following the rails tutorial on railstutorial.org/ by Michael Hartl until I got to chapter 13 (Microposts). I meticulously followed the guides. However, on app deployment, I get this error
Application error An error occurred in the application and your page
could not be served. If you are the application owner, check your logs
for details.
I have reset the database, run migrate and seed several times over as suggested by solutions offered to similar issues and yet with no luck. Here is the log file sample:
2018-05-18T22:14:48.676937+00:00 heroku[web.1]: Starting process with command `bin/rails server -p 10900 -e production`
2018-05-18T22:14:54.060567+00:00 heroku[web.1]: State changed from starting to crashed
2018-05-18T22:14:53.960648+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval': uninitialized constant CarrierWave::Storage::Fog (NameError)
2018-05-18T22:14:53.960656+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `eval'
2018-05-18T22:14:53.960657+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:78:in `storage'
2018-05-18T22:14:53.960661+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:8:in `<class:PictureUploader>'
2018-05-18T22:14:53.960662+00:00 app[web.1]: from /app/app/uploaders/picture_uploader.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960664+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960665+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960666+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960668+00:00 app[web.1]: from /app/app/models/micropost.rb:4:in `<class:Micropost>'
2018-05-18T22:14:53.960669+00:00 app[web.1]: from /app/app/models/micropost.rb:1:in `<top (required)>'
2018-05-18T22:14:53.960670+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:12:in `block in loading'
2018-05-18T22:14:53.960709+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/concurrency/share_lock.rb:149:in `exclusive'
2018-05-18T22:14:53.960763+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies/interlock.rb:11:in `loading'
2018-05-18T22:14:53.960765+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:476:in `block (2 levels) in eager_load!'
2018-05-18T22:14:53.960767+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `each'
2018-05-18T22:14:53.960769+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:475:in `block in eager_load!'
2018-05-18T22:14:53.960854+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `each'
2018-05-18T22:14:53.960857+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:473:in `eager_load!'
2018-05-18T22:14:53.960858+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:354:in `eager_load!'
2018-05-18T22:14:53.960860+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `each'
2018-05-18T22:14:53.960861+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application/finisher.rb:67:in `block in <module:Finisher>'
2018-05-18T22:14:53.960867+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
2018-05-18T22:14:53.960868+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
2018-05-18T22:14:53.960870+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
2018-05-18T22:14:53.960871+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2018-05-18T22:14:53.960873+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2018-05-18T22:14:53.960874+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2018-05-18T22:14:53.960876+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2018-05-18T22:14:53.960877+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each'
2018-05-18T22:14:53.960881+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `call'
2018-05-18T22:14:53.960883+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2018-05-18T22:14:53.960884+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2018-05-18T22:14:53.960887+00:00 app[web.1]: from /app/vendor/ruby-2.3.7/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2018-05-18T22:14:53.960888+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
2018-05-18T22:14:53.960889+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
2018-05-18T22:14:53.960892+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2018-05-18T22:14:53.960893+00:00 app[web.1]: from config.ru:3:in `require_relative'
2018-05-18T22:14:53.960894+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2018-05-18T22:14:53.960897+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `instance_eval'
2018-05-18T22:14:53.960898+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:55:in `initialize'
2018-05-18T22:14:53.960900+00:00 app[web.1]: from config.ru:in `new'
2018-05-18T22:14:53.960901+00:00 app[web.1]: from config.ru:in `<main>'
2018-05-18T22:14:53.960904+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `eval'
2018-05-18T22:14:53.960905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:49:in `new_from_string'
2018-05-18T22:14:53.960907+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/builder.rb:40:in `parse_file'
2018-05-18T22:14:53.960908+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:319:in `build_app_and_options_from_config'
2018-05-18T22:14:53.960911+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:219:in `app'
2018-05-18T22:14:53.960913+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:24:in `app'
2018-05-18T22:14:53.960914+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:354:in `wrapped_app'
2018-05-18T22:14:53.960917+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-2.0.5/lib/rack/server.rb:283:in `start'
2018-05-18T22:14:53.960919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:44:in `start'
2018-05-18T22:14:53.960920+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:135:in `block in perform'
2018-05-18T22:14:53.960922+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `tap'
2018-05-18T22:14:53.960924+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands/server/server_command.rb:130:in `perform'
2018-05-18T22:14:53.960926+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/command.rb:27:in `run'
2018-05-18T22:14:53.960928+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor/invocation.rb:126:in `invoke_command'
2018-05-18T22:14:53.960935+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/thor-0.20.0/lib/thor.rb:387:in `dispatch'
2018-05-18T22:14:53.960938+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command/base.rb:63:in `perform'
2018-05-18T22:14:53.960939+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/command.rb:44:in `invoke'
2018-05-18T22:14:53.960941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/commands.rb:16:in `<top (required)>'
2018-05-18T22:14:53.960944+00:00 app[web.1]: from bin/rails:9:in `require'
2018-05-18T22:14:53.960945+00:00 app[web.1]: from bin/rails:9:in `<main>'
2018-05-18T22:14:53.970120+00:00 app[web.1]: => Booting Puma
2018-05-18T22:14:53.970122+00:00 app[web.1]: => Rails 5.1.4 application starting in production
2018-05-18T22:14:53.970124+00:00 app[web.1]: => Run `rails server -h` for more startup options
2018-05-18T22:14:53.970125+00:00 app[web.1]: Exiting
2018-05-18T22:14:54.042883+00:00 heroku[web.1]: Process exited with status 1
2018-05-18T22:15:16.572035+00:00 heroku[web.1]: State changed from crashed to starting
2018-05-18T22:37:55.303199+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=stark-lowlands-20410.herokuapp.com request_id=0c17f93e-2b8d-4836-9918-d6cb6300c67f fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
2018-05-18T22:38:01.314179+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=stark-lowlands-20410.herokuapp.com request_id=ace627d1-ff26-4003-8e42-119c266420b8 fwd="137.50.176.88" dyno= connect= service= status=503 bytes= protocol=https
Somehow I think it has something to do with the image resize code here (initializers/skip_image_resizing.rb):
if Rails.env.test?
CarrierWave.configure do |config|
config.enable_processing = false
end
end
Any ideas?

Heroku error: The scope body needs to be callable (Rails)

I get this error when I deploy to Heroku. The app is deployed but I have an Application Error message when I open the app on my browser.
I don't really understand why I got this error. Looked up my scopes and everything's fine. There's no syntax or anything...
Heroku logs:
2017-12-21T16:20:44.520142+00:00 app[web.1]: Exiting
2017-12-21T16:20:45.022771+00:00 app[web.1]: /app/vendor/bundle/ruby/2.3.0/gems/activerecord-4.2.6/lib/active_record/scoping/named.rb:143:in `scope': The scope body needs to be callable. (ArgumentError)
2017-12-21T16:20:45.022814+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:10:in `<class:RichFile>'
2017-12-21T16:20:45.022827+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:6:in `<module:Rich>'
2017-12-21T16:20:45.022840+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rich-1.4.6/app/models/rich/rich_file.rb:5:in `<top (required)>'
2017-12-21T16:20:45.022853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.022890+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2017-12-21T16:20:45.022905+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-12-21T16:20:45.022917+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.022930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:360:in `require_or_load'
2017-12-21T16:20:45.022942+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:317:in `depend_on'
2017-12-21T16:20:45.022955+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:233:in `require_dependency'
2017-12-21T16:20:45.022967+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'
2017-12-21T16:20:45.022979+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `each'
2017-12-21T16:20:45.022992+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:471:in `block in eager_load!'
2017-12-21T16:20:45.023004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `each'
2017-12-21T16:20:45.023016+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:469:in `eager_load!'
2017-12-21T16:20:45.023043+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/engine.rb:346:in `eager_load!'
2017-12-21T16:20:45.023109+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:in `each'
2017-12-21T16:20:45.023123+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'
2017-12-21T16:20:45.023136+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2017-12-21T16:20:45.023148+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:30:in `run'
2017-12-21T16:20:45.023160+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2017-12-21T16:20:45.023172+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:228:in `block in tsort_each'
2017-12-21T16:20:45.023185+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:350:in `block (2 levels) in each_strongly_connected_component'
2017-12-21T16:20:45.023209+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:431:in `each_strongly_connected_component_from'
2017-12-21T16:20:45.023237+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:349:in `block in each_strongly_connected_component'
2017-12-21T16:20:45.023254+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each'
2017-12-21T16:20:45.023269+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `call'
2017-12-21T16:20:45.023285+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:347:in `each_strongly_connected_component'
2017-12-21T16:20:45.023300+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:226:in `tsort_each'
2017-12-21T16:20:45.023316+00:00 app[web.1]: from /app/vendor/ruby-2.3.4/lib/ruby/2.3.0/tsort.rb:205:in `tsort_each'
2017-12-21T16:20:45.023331+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2017-12-21T16:20:45.023345+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/application.rb:352:in `initialize!'
2017-12-21T16:20:45.023359+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2017-12-21T16:20:45.023382+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.023404+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `block in require'
2017-12-21T16:20:45.023418+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:240:in `load_dependency'
2017-12-21T16:20:45.023506+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/activesupport-4.2.6/lib/active_support/dependencies.rb:274:in `require'
2017-12-21T16:20:45.023754+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2017-12-21T16:20:45.023771+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `instance_eval'
2017-12-21T16:20:45.023789+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:55:in `initialize'
2017-12-21T16:20:45.023807+00:00 app[web.1]: from /app/config.ru:in `new'
2017-12-21T16:20:45.023823+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-12-21T16:20:45.023839+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:49:in `eval'
2017-12-21T16:20:45.023853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:49:in `new_from_string'
2017-12-21T16:20:45.023868+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/builder.rb:40:in `parse_file'
2017-12-21T16:20:45.023913+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:300:in `build_app_and_options_from_config'
2017-12-21T16:20:45.023931+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:209:in `app'
2017-12-21T16:20:45.023948+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:61:in `app'
2017-12-21T16:20:45.023968+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:337:in `wrapped_app'
2017-12-21T16:20:45.023985+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/rack-1.6.8/lib/rack/server.rb:273:in `start'
2017-12-21T16:20:45.024002+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/server.rb:80:in `start'
2017-12-21T16:20:45.024171+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:80:in `block in server'
2017-12-21T16:20:45.024188+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
2017-12-21T16:20:45.024204+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
2017-12-21T16:20:45.024338+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
2017-12-21T16:20:45.024321+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
2017-12-21T16:20:45.024354+00:00 app[web.1]: from bin/rails:9:in `require'
2017-12-21T16:20:45.024369+00:00 app[web.1]: from bin/rails:9:in `<main>'
2017-12-21T16:20:45.233312+00:00 heroku[web.1]: State changed from starting to crashed
2017-12-21T16:20:45.218712+00:00 heroku[web.1]: Process exited with status 1
2017-12-21T16:20:51.964132+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/favicon.ico" host=afternoon-beyond-98583.herokuapp.com request_id=fe3ee2ae-c79f-4636-b07b-81484e12300e fwd="37.172.154.21" dyno= connect= service= status=503 bytes= protocol=https
2017-12-21T16:20:46.783888+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=afternoon-beyond-98583.herokuapp.com request_id=ea904370-1b61-4cb5-854a-056b0b46cf37 fwd="37.172.154.21" dyno= connect= service= status=503 bytes= protocol=https
Scopes model:
scope :normal, lambda { where(produit_type: 'normal') }
scope :abonnements, lambda { where(produit_type: 'abonnement') }
scope :box, lambda { where(produit_type: 'box') }

Error deploying Rails app to heroku

I get the following error when trying to access my app on heroku. The app was deployed successfully but I could not access it. When I tried to access the app, the page said "Application error
An error occurred in the application and your page could not be served. If you are the application owner, check your logs for details." Here is the heroku logs:
heroku logs
2017-03-21T20:28:21.577989+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-03-21T20:28:21.578004+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2017-03-21T20:28:21.578005+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2017-03-21T20:28:21.578007+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2017-03-21T20:28:21.578008+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2017-03-21T20:28:21.578010+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2017-03-21T20:28:21.749663+00:00 heroku[web.1]: Process exited with status 1
2017-03-21T20:28:21.578012+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:59:in `app'
2017-03-21T20:28:21.578026+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2017-03-21T20:28:21.578029+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2017-03-21T20:28:21.578030+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:79:in `start'
2017-03-21T20:28:21.578032+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:90:in `block in serv er'
2017-03-21T20:28:21.578033+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
2017-03-21T20:28:21.578035+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
2017-03-21T20:28:21.578037+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2017-03-21T20:28:21.578052+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
2017-03-21T20:28:21.578078+00:00 app[web.1]: from bin/rails:4:in `require'
2017-03-21T20:28:21.578079+00:00 app[web.1]: from bin/rails:4:in `<main>'
2017-03-21T20:28:21.768673+00:00 heroku[web.1]: State changed from starting to c rashed
2017-03-21T20:28:23.139347+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/recipes" host=weather-consult.herokuapp.com request_id=9 801a23f-72b9-4477-8e90-93fba979e78f fwd="83.138.193.223" dyno= connect= service= status=503 bytes= protocol=https
2017-03-21T20:28:23.718785+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=weather-consult.herokuapp.com request_ id=100c960d-b3a1-4374-ae56-52e60b785710 fwd="83.138.193.223" dyno= connect= serv ice= status=503 bytes= protocol=https
2017-03-21T20:28:40.702732+00:00 heroku[web.1]: State changed from crashed to st arting
2017-03-21T20:28:43.480189+00:00 heroku[web.1]: Starting process with command `b in/rails server -p 41364 -e production`
2017-03-21T20:28:48.023383+00:00 app[web.1]: => Rails 5.0.2 application starting in production on http://0.0.0.0:41364
2017-03-21T20:28:48.023384+00:00 app[web.1]: => Run `rails server -h` for more s tartup options
2017-03-21T20:28:48.023369+00:00 app[web.1]: => Booting Puma
2017-03-21T20:28:48.023384+00:00 app[web.1]: Exiting
2017-03-21T20:28:48.023457+00:00 app[web.1]: /app/vendor/bundle/ruby/2.2.0/gems/ activerecord-5.0.2/lib/active_record/connection_adapters/connection_specificatio n.rb:176:in `rescue in spec': Specified 'postgresql' for database adapter, but t he gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
2017-03-21T20:28:48.023485+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/connection_adapters/connection_spec ification.rb:173:in `spec'
2017-03-21T20:28:48.023486+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/connection_handling.rb:53:in `estab lish_connection'
2017-03-21T20:28:48.023487+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/railtie.rb:125:in `block (2 levels) in <class:Railtie>'
2017-03-21T20:28:48.023531+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `each'
2017-03-21T20:28:48.023532+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:49:in `run_loa d_hooks'
2017-03-21T20:28:48.023526+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:43:in `instanc e_eval'
2017-03-21T20:28:48.023527+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:43:in `execute _hook'
2017-03-21T20:28:48.023534+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/base.rb:324:in `<module:ActiveRecor d>'
2017-03-21T20:28:48.023528+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/lazy_load_hooks.rb:50:in `block i n run_load_hooks'
2017-03-21T20:28:48.023535+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activerecord-5.0.2/lib/active_record/base.rb:24:in `<top (required)>'
2017-03-21T20:28:48.023537+00:00 app[web.1]: from /app/app/models/application _record.rb:1:in `<top (required)>'
2017-03-21T20:28:48.023539+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
2017-03-21T20:28:48.023569+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:37:in `block in l oad_interlock'
2017-03-21T20:28:48.023564+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `block in require'
2017-03-21T20:28:48.023590+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies/interlock.rb:12:in ` block in loading'
2017-03-21T20:28:48.023565+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:259:in `load_depe ndency'
2017-03-21T20:28:48.023590+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/concurrency/share_lock.rb:150:in `exclusive'
2017-03-21T20:28:48.023566+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:293:in `require'
2017-03-21T20:28:48.023568+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:380:in `block in require_or_load'
2017-03-21T20:28:48.023591+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies/interlock.rb:11:in ` loading'
2017-03-21T20:28:48.023592+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:37:in `load_inter lock'
2017-03-21T20:28:48.023593+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:358:in `require_o r_load'
2017-03-21T20:28:48.023599+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:473:in `each'
2017-03-21T20:28:48.023598+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:475:in `block in eager_load!'
2017-03-21T20:28:48.023600+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:473:in `eager_load!'
2017-03-21T20:28:48.023594+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:336:in `depend_on '
2017-03-21T20:28:48.023594+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/activesupport-5.0.2/lib/active_support/dependencies.rb:252:in `require_d ependency'
2017-03-21T20:28:48.023597+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:475:in `each'
2017-03-21T20:28:48.023595+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:476:in `block (2 levels) in eager_loa d!'
2017-03-21T20:28:48.023602+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/engine.rb:354:in `eager_load!'
2017-03-21T20:28:48.023603+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application/finisher.rb:59:in `each'
2017-03-21T20:28:48.023605+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application/finisher.rb:59:in `block in <module :Finisher>'
2017-03-21T20:28:48.023606+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `instance_exec'
2017-03-21T20:28:48.023626+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_componen t'
2017-03-21T20:28:48.023608+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:30:in `run'
2017-03-21T20:28:48.023628+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'
2017-03-21T20:28:48.023639+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'
2017-03-21T20:28:48.023610+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:55:in `block in run_initialize rs'
2017-03-21T20:28:48.023612+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:226:in `block in tsort_each'
2017-03-21T20:28:48.023641+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `each'
2017-03-21T20:28:48.023643+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `call'
2017-03-21T20:28:48.023649+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'
2017-03-21T20:28:48.023663+00:00 app[web.1]: from /app/config/environment.rb: 5:in `<top (required)>'
2017-03-21T20:28:48.023651+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:224:in `tsort_each'
2017-03-21T20:28:48.023653+00:00 app[web.1]: from /app/vendor/ruby-2.2.6/lib/ ruby/2.2.0/tsort.rb:203:in `tsort_each'
2017-03-21T20:28:48.023665+00:00 app[web.1]: from /app/config.ru:3:in `requir e_relative'
2017-03-21T20:28:48.023655+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/initializable.rb:54:in `run_initializers'
2017-03-21T20:28:48.023671+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2017-03-21T20:28:48.023661+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/application.rb:352:in `initialize!'
2017-03-21T20:28:48.023673+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `instance_eval'
2017-03-21T20:28:48.023675+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:55:in `initialize'
2017-03-21T20:28:48.023678+00:00 app[web.1]: from /app/config.ru:in `new'
2017-03-21T20:28:48.023683+00:00 app[web.1]: from /app/config.ru:in `<main>'
2017-03-21T20:28:48.023696+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:318:in `build_app_and_options_from_config'
2017-03-21T20:28:48.023697+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:218:in `app'
2017-03-21T20:28:48.023685+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `eval'
2017-03-21T20:28:48.023700+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:59:in `app'
2017-03-21T20:28:48.023687+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:49:in `new_from_string'
2017-03-21T20:28:48.023690+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/builder.rb:40:in `parse_file'
2017-03-21T20:28:48.023702+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:353:in `wrapped_app'
2017-03-21T20:28:48.023704+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/rack-2.0.1/lib/rack/server.rb:282:in `start'
2017-03-21T20:28:48.023710+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/server.rb:79:in `start'
2017-03-21T20:28:48.023712+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:90:in `block in serv er'
2017-03-21T20:28:48.023714+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `tap'
2017-03-21T20:28:48.023715+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:85:in `server'
2017-03-21T20:28:48.023724+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands.rb:18:in `<top (required)>'
2017-03-21T20:28:48.023718+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.2 .0/gems/railties-5.0.2/lib/rails/commands/commands_tasks.rb:49:in `run_command!'
2017-03-21T20:28:48.023726+00:00 app[web.1]: from bin/rails:4:in `require'
2017-03-21T20:28:48.023732+00:00 app[web.1]: from bin/rails:4:in `<main>'
2017-03-21T20:28:48.114357+00:00 heroku[web.1]: Process exited with status 1
2017-03-21T20:28:48.128920+00:00 heroku[web.1]: State changed from starting to c rashed
2017-03-21T20:28:49.680428+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/recipes" host=weather-consult.herokuapp.com request_id=a 42f1683-8c92-412e-bc36-35bee47fd044 fwd="83.138.193.223" dyno= connect= service= status=503 bytes= protocol=https
2017-03-21T20:28:50.139167+00:00 heroku[router]: at=error code=H10 desc="App cra shed" method=GET path="/favicon.ico" host=weather-consult.herokuapp.com request_ id=70b71bcf-af11-489f-bdee-f3325249f7fe fwd="83.138.193.223" dyno= connect= serv ice= status=503 bytes= protocol=https
You must not have pg in your Gemfile which makes me think that you might be missing deployment specific stuff from your gemfile. Find the sqlite3 or equivalent development database gem and restructure it like this in your gemfile, which is typically how its done. Heroku automagically looks for that :production environment and loads the applicable configs for that.
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console', '>= 3.3.0'
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
gem 'letsencrypt-rails-heroku'
end
You also sometimes get that error when you forget to migrate the database when your schema changes. You can do that with heroku run rake db:migrate.
Try to restart dynos.
heroku ps:restart
or try simply heroku restart
Description: Devcenter Heroku
This also can by helpful
Heroku deployment error H10 (App crashed)
You need to update your logs in the question so they are a bit more readable. You need to add pg to your Gemfile as you are using Postgresql.
The gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).(Gem::LoadError)

Rails app works fine locally but heroku gives "application error"

An error occurred in the application and your page could not be
served. Please try again in a few moments.
If you are the application owner, check your logs for details.
This is output of $ heroku logs
2013-11-04T16:42:03.262057+00:00 app[web.1]: => Booting WEBrick
2013-11-04T16:42:03.262057+00:00 app[web.1]: => Call with -d to detach
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-11-04T16:42:03.262057+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-11-04T16:42:03.262812+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': /app/app/controllers/comments_controller.rb:11: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
2013-11-04T16:42:03.262057+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:21573
2013-11-04T16:42:03.262057+00:00 app[web.1]: Exiting
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/config.ru:3:in `require'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from script/rails:6:in `require'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-11-04T16:42:03.262812+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/config.ru:in `new'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-11-04T16:42:03.262959+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/config.ru:in `<main>'
2013-11-04T16:42:03.263102+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
2013-11-04T16:42:03.263481+00:00 app[web.1]: from s
cript/rails:6:in `<main>'
2013-11-04T16:42:04.472335+00:00 heroku[web.1]: Process exited with status 1
2013-11-04T16:42:04.486507+00:00 heroku[web.1]: State changed from starting to crashed
2013-11-04T16:42:04.487147+00:00 heroku[web.1]: State changed from crashed to starting
2013-11-04T16:42:08.798959+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 25033`
2013-11-04T16:42:11.912925+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)
2013-11-04T16:42:11.912925+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)
2013-11-04T16:42:12.498245+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:25033
2013-11-04T16:42:12.498245+00:00 app[web.1]: Exiting
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-11-04T16:42:12.498245+00:00 app[web.1]: => Call with -d to detach
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-11-04T16:42:12.498245+00:00 app[web.1]: => Booting WEBrick
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in `block in eager_load!'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-11-04T16:42:12.498245+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-11-04T16:42:12.499025+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require': /app/app/controllers/comments_controller.rb:11: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in `each'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/config.ru:in `new'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:313:in `depend_on'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:438:in `each'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/config.ru:in `<main>'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from script/rails:6:in `require'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-11-04T16:42:12.499025+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/engine.rb:436:in `eager_load!'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-11-04T16:42:12.499167+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/config.ru:3:in `require'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from script/rails:6:in `<main>'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2013-11-04T16:42:12.499842+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2013-11-04T16:42:12.499310+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2013-11-04T16:42:13.751522+00:00 heroku[web.1]: State changed from starting to crashed
2013-11-04T16:42:13.731563+00:00 heroku[web.1]: Process exited with status 1
2013-11-04T16:42:15.692293+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-fjord-9847.herokuapp.com fwd="122.171.4.161" dyno= connect= service= status=503 bytes=
2013-11-04T16:42:17.108274+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-fjord-9847.herokuapp.com fwd="122.171.4.161" dyno= connect= service= status=503 bytes=
2013-11-04T16:43:56.642434+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=protected-fjord-9847.herokuapp.com fwd="117.203.200.191" dyno= connect= service= status=503 bytes=
2013-11-04T16:42:14.944153+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=protected-fjord-9847.herokuapp.com fwd="122.171.4.161" dyno= connect= service= status=503 bytes=
2013-11-04T16:43:55.498175+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=protected-fjord-9847.herokuapp.com fwd="117.203.200.191" dyno= connect= service= status=503 bytes=
pastebin link http://pastebin.com/h5vTk4c0
I think it's worth trying to run unicorn on heroku instead of webrick. Heroku became terrible at running other webservers for some reason. I was running thin perfectly fine last year, but this year, when I had some code to update and tried to upload to heroku, Thin was breaking heroku.
add gem 'unicorn'
bundle install
create config/unicorn.rb
Add the following in config/unicorn.rb
config/unicorn.rb
worker_processes Integer(ENV["WEB_CONCURRENCY"] || 3)
timeout 15
preload_app true
before_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn master intercepting TERM and sending myself QUIT instead'
Process.kill 'QUIT', Process.pid
end
defined?(ActiveRecord::Base) and
ActiveRecord::Base.connection.disconnect!
end
after_fork do |server, worker|
Signal.trap 'TERM' do
puts 'Unicorn worker intercepting TERM and doing nothing. Wait for master to send QUIT'
end
defined?(ActiveRecord::Base) and
ActiveRecord::Base.establish_connection
end
Finally commit changes and push to heroku

Heroku rails app crashed

i have issue with my app when i deploy it to heroku
heroku logs
2012-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.6/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from script/rails:6:in `require'
2012-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+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-07-20T22:54:29+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-07-20T22:54:29+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-07-20T23:03:33+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-07-20T23:03:35+00:00 heroku[router]: Error H10 (App crashed) -> GET peaceful-reef-1889.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
https://github.com/Envek/taurus that app itself
on localhost it work perfectly.
Can anyone help me with that error?
Look at these error lines:
2012-07-20T23:39:09+00:00 app[web.1]: fatal: Not a git repository (or
any of the parent directories): .git
Probably you didn't initialized your repo locally.
Try:
git init
git add .
git commit -m 'First commit'
After that deploy to heroku.

Resources