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
Related
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?
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)
My Rails 4 application works perfectly on my local machine, but when I deploy to Heroku I get an application error. The error occurs even though Heroku says the deployment was successful. The text of the error message is:
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.
To troubleshoot the problem, I ran "heroku logs" in the console, which generated the following:
2015-06-18T00:42:56.355811+00:00 heroku[api]: Release v84 created by xxxxx#xxxxx.com
2015-06-18T00:42:56.418446+00:00 heroku[slug-compiler]: Slug compilation started
2015-06-18T00:42:56.418465+00:00 heroku[slug-compiler]: Slug compilation finished
2015-06-18T00:42:57.437719+00:00 heroku[web.1]: State changed from crashed to starting
2015-06-18T00:43:02.751137+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 58907 -c ./config/unicorn.rb`
2015-06-18T00:43:06.428523+00:00 app[web.1]: I, [2015-06-18T00:43:06.428375 #3] INFO -- : Refreshing Gem list
2015-06-18T00:43:08.143475+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require': /app/app/helpers/simple_form.rb:5: syntax error, unexpected ')', expecting => (SyntaxError)
2015-06-18T00:43:08.143482+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
2015-06-18T00:43:08.143486+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
2015-06-18T00:43:08.143484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
2015-06-18T00:43:08.143487+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:348:in `require_or_load'
2015-06-18T00:43:08.143491+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:307:in `depend_on'
2015-06-18T00:43:08.143492+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2015-06-18T00:43:08.143493+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2015-06-18T00:43:08.143497+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `each'
2015-06-18T00:43:08.143499+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `block in eager_load!'
2015-06-18T00:43:08.143502+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `each'
2015-06-18T00:43:08.143504+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `eager_load!'
2015-06-18T00:43:08.143507+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:346:in `eager_load!'
2015-06-18T00:43:08.143509+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `each'
2015-06-18T00:43:08.143512+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
2015-06-18T00:43:08.143513+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
2015-06-18T00:43:08.143517+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
2015-06-18T00:43:08.143520+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-06-18T00:43:08.143522+00:00 app[web.1]: from /app/vendor/ruby- 2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-06-18T00:43:08.143531+00:00 app[web.1]: from /app/vendor/ruby- 2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-06-18T00:43:08.143534+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-06-18T00:43:08.143536+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-06-18T00:43:08.143538+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-06-18T00:43:08.143539+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-06-18T00:43:08.143542+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-06-18T00:43:08.143545+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
2015-06-18T00:43:08.143544+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
2015-06-18T00:43:08.143548+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-06-18T00:43:08.143550+00:00 app[web.1]: from config.ru:4:in `require'
2015-06-18T00:43:08.143554+00:00 app[web.1]: from config.ru:4:in `block in <main>'
2015-06-18T00:43:08.143555+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2015-06-18T00:43:08.143559+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2015-06-18T00:43:08.143561+00:00 app[web.1]: from config.ru:1:in `new'
2015-06-18T00:43:08.143564+00:00 app[web.1]: from config.ru:1:in `<main>'
2015-06-18T00:43:08.143572+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `block in builder'
2015-06-18T00:43:08.143569+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `eval'
2015-06-18T00:43:08.143574+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `call'
2015-06-18T00:43:08.143577+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `build_app!'
2015-06-18T00:43:08.143588+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
2015-06-18T00:43:08.143579+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:137:in `start'
2015-06-18T00:43:08.143583+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2015-06-18T00:43:08.143586+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
2015-06-18T00:43:09.019077+00:00 heroku[web.1]: Process exited with status 1
2015-06-18T00:43:09.035754+00:00 heroku[web.1]: State changed from starting to crashed
2015-06-18T00:43:09.037320+00:00 heroku[web.1]: State changed from crashed to starting
2015-06-18T00:43:12.753943+00:00 heroku[web.1]: Starting process with command `bundle exec unicorn -p 44603 -c ./config/unicorn.rb`
2015-06-18T00:43:15.031204+00:00 app[web.1]: I, [2015-06-18T00:43:15.031071 #3] INFO -- : Refreshing Gem list
**2015-06-18T00:43:16.824808+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require': /app/app/helpers/simple_form.rb:5: syntax error, unexpected ')', expecting => (SyntaxError)**
2015-06-18T00:43:16.824815+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
2015-06-18T00:43:16.824818+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
2015-06-18T00:43:16.824822+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
2015-06-18T00:43:16.824825+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:348:in `require_or_load'
2015-06-18T00:43:16.824832+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:225:in `require_dependency'
2015-06-18T00:43:16.824853+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:468:in `block (2 levels) in eager_load!'
2015-06-18T00:43:16.824829+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:307:in `depend_on'
2015-06-18T00:43:16.824855+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `each'
2015-06-18T00:43:16.824859+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:467:in `block in eager_load!'
2015-06-18T00:43:16.824863+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `each'
2015-06-18T00:43:16.824864+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:465:in `eager_load!'
2015-06-18T00:43:16.824866+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/engine.rb:346:in `eager_load!'
2015-06-18T00:43:16.824867+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `each'
2015-06-18T00:43:16.824871+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application/finisher.rb:58:in `block in <module:Finisher>'
2015-06-18T00:43:16.824872+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
2015-06-18T00:43:16.824874+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
2015-06-18T00:43:16.824877+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
2015-06-18T00:43:16.824879+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each'
2015-06-18T00:43:16.824897+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component'
2015-06-18T00:43:16.824898+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from'
2015-06-18T00:43:16.824903+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component'
2015-06-18T00:43:16.824905+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each'
2015-06-18T00:43:16.824906+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component'
2015-06-18T00:43:16.824907+00:00 app[web.1]: from /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each'
2015-06-18T00:43:16.824909+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
2015-06-18T00:43:16.824910+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
2015-06-18T00:43:16.824916+00:00 app[web.1]: from config.ru:4:in `require'
2015-06-18T00:43:16.824912+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2015-06-18T00:43:16.824917+00:00 app[web.1]: from config.ru:4:in `block in <main>'
2015-06-18T00:43:16.824919+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval'
2015-06-18T00:43:16.824921+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize'
2015-06-18T00:43:16.824923+00:00 app[web.1]: from config.ru:1:in `new'
2015-06-18T00:43:16.824926+00:00 app[web.1]: from config.ru:1:in `<main>'
2015-06-18T00:43:16.824927+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `eval'
2015-06-18T00:43:16.824929+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn.rb:48:in `block in builder'
2015-06-18T00:43:16.824930+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `call'
2015-06-18T00:43:16.824935+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:137:in `start'
2015-06-18T00:43:16.824934+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/lib/unicorn/http_server.rb:764:in `build_app!'
2015-06-18T00:43:16.824936+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/unicorn-4.8.3/bin/unicorn:126:in `<top (required)>'
2015-06-18T00:43:16.824940+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `load'
2015-06-18T00:43:16.824941+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/bin/unicorn:23:in `<main>'
2015-06-18T00:43:17.765684+00:00 heroku[web.1]: State changed from starting to crashed
2015-06-18T00:43:17.751742+00:00 heroku[web.1]: Process exited with status 1
2015-06-18T00:43:18.999914+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gym-app.herokuapp.com request_id=7fe8bc0d-7744-4b9a-a6af-841451c30b8f fwd="67.100.124.109" dyno= connect= service= status=503 bytes=
2015-06-18T00:43:40.236226+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gym-app.herokuapp.com request_id=54039c3e-c328-4ecd-b379-917fb5e33fec fwd="67.100.124.109" dyno= connect= service= status=503 bytes=
2015-06-18T00:44:26.777920+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gym-app.herokuapp.com request_id=7169af3e-6665-4c9c-9498-8695f31c6f78 fwd="67.100.124.109" dyno= connect= service= status=503 bytes=
2015-06-18T00:48:08.390055+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=gym-app.herokuapp.com request_id=07bfbcef-38da-4d68-b5e4-6bf29e3816ae fwd="67.100.124.109" dyno= connect= service= status=503 bytes=
I'm not certain, but I think I've identified the source of the problem. The following line stands out to me:
2015-06-18T00:43:16.824808+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require': /app/app/helpers/simple_form.rb:5: syntax error, unexpected ')', expecting => (SyntaxError)
Here's the contents of my simple_form helper file:
module SimpleForm
module Inputs
class DateTimePickerInput < Base
def input
#builder.text_field(attribute_name, :class => 'date_time_picker', input_html_options)
end
end
end
end
Note that before I coded the helper file, I could successfully deploy the application to Heroku. It appears Heroku is balking at my syntax - particularly, the closing parenthesis). However, I don't know how to correct the issue. What do I need to do to satisfy Heroku? I'd appreciate any help in getting my application successfully deployed again. Thanks!
Just replace:
#builder.text_field(attribute_name, :class => 'date_time_picker', input_html_options)
With:
#builder.text_field(attribute_name, input_html_options.merge(:class => 'date_time_picker'))
And it will do the trick.
Edit
After reading again this answer I realize that this code always overwrite the :class parameter. If you want use the called parameter instead of the default parameter, you can achieve this changing merge with reverse_merge.
Edit2
You can remove the curly braces of a hash option parameter only if it is the last parameter. For this case, text_fields accepts 2 parameters and :class belongs to the second.
I have followed all of the Heroku / Rails 3 information for deploying and have done so successfully in the past as well. For some reason this dyno keeps crashing on deployment and I can't seem to figure out what it is.
Here is the logs...
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2013-08-08T07:14:53.597370+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2013-08-08T07:14:53.597204+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-08-08T07:14:53.597370+00:00 app[web.1]: from /app/config.ru:4:in `block in '
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2013-08-08T07:14:53.597370+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2013-08-08T07:14:53.597852+00:00 app[web.1]: from script/rails:6:in `'
2013-08-08T07:14:53.597370+00:00 app[web.1]: from /app/config/environment.rb:5:in `'
2013-08-08T07:14:53.597852+00:00 app[web.1]: from script/rails:6:in `require'
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2013-08-08T07:14:53.597852+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:50:in `'
2013-08-08T07:14:53.597852+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2013-08-08T07:14:53.597688+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2013-08-08T07:14:53.597852+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in '
2013-08-08T07:14:54.816593+00:00 heroku[web.1]: Process exited with status 1
2013-08-08T07:14:54.832103+00:00 heroku[web.1]: State changed from starting to crashed
2013-08-08T07:15:24.152264+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
2013-08-08T07:15:24.302037+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
2013-08-08T07:15:26.500540+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
2013-08-08T07:15:26.585865+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
2013-08-08T07:15:52.251894+00:00 heroku[web.1]: State changed from crashed to starting
2013-08-08T07:15:57.691573+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 37681`
2013-08-08T07:16:02.767322+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 at /app/config/environment.rb:5)
2013-08-08T07:16:02.767322+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 at /app/config/environment.rb:5)
2013-08-08T07:16:02.767322+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 at /app/config/environment.rb:5)
2013-08-08T07:16:03.583098+00:00 app[web.1]: => Booting WEBrick
2013-08-08T07:16:03.583098+00:00 app[web.1]: => Rails 3.2.6 application starting in production on http://0.0.0.0:37681
2013-08-08T07:16:03.583098+00:00 app[web.1]: => Call with -d to detach
2013-08-08T07:16:03.583098+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-08-08T07:16:03.583098+00:00 app[web.1]: Exiting
2013-08-08T07:16:03.584336+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/authlogic-3.1.3/lib/authlogic/acts_as_authentic/base.rb:31:in `acts_as_authentic': You must establish a database connection before using acts_as_authentic (StandardError)
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/app/models/user.rb:2:in `'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/app/models/user.rb:1:in `'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2013-08-08T07:16:03.584336+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:192:in `block in const_missing'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:190:in `each'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:190:in `const_missing'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/inflector/methods.rb:229:in `block in constantize'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/inflector/methods.rb:228:in `constantize'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/inflector/methods.rb:228:in `each'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/inflector/methods.rb:259:in `safe_constantize'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.6/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.6/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2013-08-08T07:16:03.584484+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.6/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.6/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.6/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/app/controllers/users_controller.rb:1:in `'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:313:in `depend_on'
2013-08-08T07:16:03.584623+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:225:in `require_dependency'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:438:in `each'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:438:in `block in eager_load!'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:436:in `each'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `instance_exec'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/application/finisher.rb:53:in `block in '
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/engine.rb:436:in `eager_load!'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/initializable.rb:30:in `run'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `run_initializers'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/application.rb:136:in `initialize!'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/config/environment.rb:5:in `'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `block in require'
2013-08-08T07:16:03.585001+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/initializable.rb:54:in `each'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.6/lib/active_support/dependencies.rb:251:in `require'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/config.ru:4:in `block in '
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `instance_eval'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:51:in `initialize'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/config.ru:1:in `new'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/config.ru:1:in `'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `eval'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/builder.rb:40:in `parse_file'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:200:in `app'
2013-08-08T07:16:03.585143+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands/server.rb:46:in `app'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:301:in `wrapped_app'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/rack-1.4.1/lib/rack/server.rb:252:in `start'
2013-08-08T07:16:03.585581+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:55:in `block in '
2013-08-08T07:16:03.585581+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:50:in `tap'
2013-08-08T07:16:03.585581+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands.rb:50:in `'
2013-08-08T07:16:03.585581+00:00 app[web.1]: from script/rails:6:in `require'
2013-08-08T07:16:03.585392+00:00 app[web.1]: from /app/vendor/bundle/ruby/2.0.0/gems/railties-3.2.6/lib/rails/commands/server.rb:70:in `start'
2013-08-08T07:16:03.585581+00:00 app[web.1]: from script/rails:6:in `'
2013-08-08T07:16:05.244491+00:00 heroku[web.1]: Process exited with status 1
2013-08-08T07:16:05.269665+00:00 heroku[web.1]: State changed from starting to crashed
2013-08-08T07:16:06.134395+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
2013-08-08T07:16:06.471391+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/favicon.ico host=retreat-4025.herokuapp.com fwd="66.148.232.2" dyno= connect= service= status=503 bytes=
Was just a matter of creating / migrating the database.
heroku rake db:create
and
heroku rake db:migrate
Thanks everyone for your help!
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