I am using locomotive CMS and have created an app with their engine and have followed all the steps to upload it to Heroku. However, when I try to open the app using my URL, I get an application error that says that "An error occurred in the application and your page could not be served. Please try again in a few moments." Below is the log details. Can someone tell me what is going wrong?
2014-02-22T18:27:10.019069+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid.rb:165:in `load!'
2014-02-22T18:27:10.019069+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/config/environment.rb:40:in `load_yaml'
2014-02-22T18:27:10.019069+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
2014-02-22T18:27:10.019069+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from config.ru:3:in `require'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from config.ru:1:in `new'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `load'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from config.ru:1:in `<main>'
2014-02-22T18:27:10.019321+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `eval'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:72:in `start'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:200:in `run_command'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:156:in `run!'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/bin/thin:6:in `<top (required)>'
2014-02-22T18:27:10.019502+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2014-02-22T18:27:09.945557+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2014-02-22T18:27:10.020070+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2014-02-22T18:27:11.123783+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)
2014-02-22T18:27:11.123783+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)
2014-02-22T18:27:11.331326+00:00 heroku[web.1]: Process exited with status 1
2014-02-22T18:27:11.350265+00:00 heroku[web.1]: Process exited with status 1
2014-02-22T18:27:12.266238+00:00 app[web.1]: /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 22 column 7 (Psych::SyntaxError)
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:127:in `load'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:151:in `parse'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/config/environment.rb:40:in `load_yaml'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/config.rb:89:in `load!'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid.rb:165:in `load!'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-22T18:27:12.266238+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/railtie.rb:67:in `block in <class:Railtie>'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from config.ru:3:in `require'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `load'
2014-02-22T18:27:12.266588+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from config.ru:1:in `new'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:72:in `start'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `eval'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from config.ru:1:in `<main>'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:156:in `run!'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:200:in `run_command'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2014-02-22T18:27:12.266869+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/bin/thin:6:in `<top (required)>'
2014-02-22T18:27:12.267626+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2014-02-22T18:27:13.659542+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-22T18:27:13.659542+00:00 heroku[web.1]: State changed from crashed to starting
2014-02-22T18:27:13.641921+00:00 heroku[web.1]: Process exited with status 1
2014-02-22T18:27:21.169905+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 38322`
2014-02-22T18:27:47.282641+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)
2014-02-22T18:27:47.284111+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)
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:151:in `parse'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/config.rb:89:in `load!'
2014-02-22T18:27:49.769965+00:00 app[web.1]: /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): did not find expected key while parsing a block mapping at line 22 column 7 (Psych::SyntaxError)
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:55:in `block in run_initializers'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/config/environment.rb:40:in `load_yaml'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid/railtie.rb:67:in `block in <class:Railtie>'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/ruby-1.9.3/lib/ruby/1.9.1/psych.rb:127:in `load'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.1.6/lib/mongoid.rb:165:in `load!'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `run'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `run_initializers'
2014-02-22T18:27:49.769965+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:30:in `instance_exec'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/initializable.rb:54:in `each'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/railtie/configurable.rb:30:in `method_missing'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.16/lib/rails/application.rb:136:in `initialize!'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from config.ru:3:in `require'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from config.ru:1:in `new'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from config.ru:1:in `<main>'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `eval'
2014-02-22T18:27:49.770232+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/bin/thin:6:in `<top (required)>'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/rack/adapter/loader.rb:33:in `load'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:182:in `load_rackup_config'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/controllers/controller.rb:72:in `start'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:200:in `run_command'
2014-02-22T18:27:49.770412+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.6.1/lib/thin/runner.rb:156:in `run!'
2014-02-22T18:27:51.265166+00:00 heroku[web.1]: Process exited with status 1
2014-02-22T18:27:51.276294+00:00 heroku[web.1]: State changed from starting to crashed
2014-02-22T18:27:53.791976+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=danacamilleapp.herokuapp.com request_id=13abf837-1e73-468e-8d33-011ed163f1e3 fwd="72.89.235.136" dyno= connect= service= status=503 bytes=
This is my mongoid.yml file:
development:
sessions:
default:
database: locomotive_dev
hosts:
- localhost:27017
options:
identity_map_enabled: true
test:
sessions:
default:
database: locomotive_test
hosts:
- localhost:27017
options:
identity_map_enabled: true
production:
sessions:
default:
database: locomotive_production
# heroku
uri: <%= ENV['MONGOHQ_URL'] %>
hosts:
- localhost:27017
options:
identity_map_enabled: true
You have an extra space before uri which causes your yaml to be invalid. You can check it at http://yamllint.com
In short: My application works fine in development using Devise, however in production I'm getting the error shown below. Bare in mind that I am using KatanaCode's BlogIt engine but I have re-built the user model, and schema and it is only using Devise's model.
github: https://github.com/Apane/Blogit_blog
Please advice.
2013-05-29T03:21:40.998554+00:00 heroku[web.1]: Process exited with status 1
2013-05-29T03:21:41.015407+00:00 heroku[web.1]: State changed from starting to crashed
2013-05-29T03:21:43.320094+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path=/ host=infinite-springs-1056.herokuapp.com fwd="99.233.170.104" dyno= connect= service= status=503 bytes=
2013-05-29T03:30:35.867092+00:00 heroku[slugc]: Slug compilation started
2013-05-29T03:31:18.246368+00:00 heroku[api]: Deploy 40e00ad by "email"
2013-05-29T03:31:18.259954+00:00 heroku[api]: Release v32 created by "email"
2013-05-29T03:31:18.303244+00:00 heroku[api]: Deploy 40e00ad by "email"
2013-05-29T03:31:18.793210+00:00 heroku[slugc]: Slug compilation finished
2013-05-29T03:31:18.954842+00:00 heroku[web.1]: State changed from crashed to starting
2013-05-29T03:31:21.260593+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 17013`
2013-05-29T03:31:26.046042+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-05-29T03:31:26.046145+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-05-29T03:31:26.046393+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-05-29T03:31:27.383898+00:00 app[web.1]: [Blogit]: Blogit::Configuration#rss_feed_language has been deprecated. You can remove this from your blogit.rb configuration file
2013-05-29T03:31:28.147889+00:00 app[web.1]: Exiting
2013-05-29T03:31:28.147889+00:00 app[web.1]: => Booting WEBrick
2013-05-29T03:31:28.147889+00:00 app[web.1]: => Rails 3.2.13 application starting in production on http://0.0.0.0:17013
2013-05-29T03:31:28.147889+00:00 app[web.1]: => Call with -d to detach
2013-05-29T03:31:28.147889+00:00 app[web.1]: => Ctrl-C to shutdown server
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/app/models/user.rb:1:in `<top (required)>'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/app/models/user.rb:4:in `<class:User>'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `const_missing'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:359:in `require_or_load'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise.rb:306:in `add_mapping'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:588:in `constantize'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise.rb:272:in `get'
2013-05-29T03:31:28.192463+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.13/lib/active_record/dynamic_matchers.rb:55:in `method_missing': undefined method `devise' for User(id: integer, created_at: datetime, updated_at: datetime):Class (NoMethodError)
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:554:in `get'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/mapping.rb:66:in `initialize'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:190:in `each'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `each'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:229:in `constantize'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:267:in `draw'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/rails/routes.
rb:207:in `devise_for'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:34:in `call'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:16:in `reload!'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:108:in `reload_routes!'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/mapping.rb:77:in `to'
2013-05-29T03:31:28.192463+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:192:in `block in const_missing'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/rails/routes.rb:208:in `block in devise_for'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise.rb:306:in `new'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/mapping.rb:156:in `default_used_route'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:46:in `app'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/config.ru:in `new'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:200:in `app'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands/server.rb:70:in `start'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:254:in `start'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:55:in `block in <top (required)>'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/server.rb:304:in `wrapped_app'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `tap'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from script/rails:6:in `require'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/commands.rb:50:in `<top (required)>'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/inflector/methods.rb:230:in `block in constantize'
2013-05-29T03:31:28.192840+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/mapping.rb:72:in `modules'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:289:in `eval_block'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/mapping.rb:89:in `routes'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.13/lib/action_dispatch/routing/route_set.rb:289:in `instance_exec'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/config/routes.rb:4:in `block in <top (required)>'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `block in load'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in `each'
2013-05-29T03:31:28.193094+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/rails/routes.rb:207:in `each'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/routes_reloader.rb:40:in `load_paths'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:245:in `load'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:42:in `each'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.2.4/lib/devise/rails.rb:14:in `block in <class:Engine>'
2013-05-29T03:31:28.193316+00:00 app[web.1]: from /app/config/routes.rb:1:in `<top (required)>'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/config.ru:3:in `block in <main>'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
2013-05-29T03:31:28.193548+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `parse_file'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/config.ru:in `<main>'
2013-05-29T03:31:28.194186+00:00 app[web.1]: from script/rails:6:in `<main>'
2013-05-29T03:31:28.193762+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:40:in `eval'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `instance_eval'
2013-05-29T03:31:28.193973+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in `initialize'
2013-05-29T03:31:29.377624+00:00 heroku[web.1]: Process exited with status 1
2013-05-29T03:31:29.396876+00:00 heroku[web.1]: State changed from starting to crashed
2013-05-29T03:31:29.397413+00:00 heroku[web.1]: State changed from crashed to starting
2013-05-29T03:31:32.474515+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 20203`
Try removing gem 'activerecord' from your Gemfile and then run rails generate devise:install in your bash.
My website, hosted in Heroku, has been working fine with Rails 3.2.8. I'm using a route constraint class with the HighVoltage gem for static (mostly) webpages:
routes.rb:
get "/*id" => "high_voltage/pages#show", constraints: Constraints::StaticPage.new
I have a file in /lib/constraints/static_page.rb:
module Constraints
class StaticPage
def matches?(request)
File.exist? file_path(request.path)
end
private
def file_path(view)
static_page_views_dir.to_s.concat("#{view}.html.erb")
end
def static_page_views_dir
Rails.root.join('app', 'views', 'pages')
end
end
end
Problem is, I just updated to Rails 3.2.9 and did a git push heroku and my app crashed :(
my-host:my-site scott$ heroku ps
=== web: `bundle exec rails server -p $PORT`
web.1: crashed 2012/11/14 12:14:41 (~ 2s ago)
Apparently, Ruby/Heroku can't find my Constraints::StaticPage class. I have it required at the top of my routes.rb:
require 'constraints/static_page'
Did something change in Rails 3.2.9 so that no longer works with Heroku? Locally everything works fine, just not in Heroku. If I take out that constraint in my route, everything works perfect (aside from not having those constraints). Here's my heroku logs output:
2012-11-14T20:14:36+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-11-14T20:14:36+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-11-14T20:14:38+00:00 app[web.1]: => Booting WEBrick
2012-11-14T20:14:38+00:00 app[web.1]: => Rails 3.2.9 application starting in production on http://0.0.0.0:18361
2012-11-14T20:14:38+00:00 app[web.1]: => Call with -d to detach
2012-11-14T20:14:38+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-11-14T20:14:38+00:00 app[web.1]: Exiting
2012-11-14T20:14:38+00:00 app[web.1]: /app/config/routes.rb:50:in `block in <top (required)>': uninitialized constant ActionDispatch::Routing::Mapper::Constraints::StaticPage (NameError)
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:282:in `instance_exec'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:282:in `eval_block'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.9/lib/action_dispatch/routing/route_set.rb:260:in `draw'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/config/routes.rb:3:in `<top (required)>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `block in load_paths'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `each'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/lazy_load_hooks.rb:34:in `execute_hook'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/lazy_load_hooks.rb:43:in `block in run_load_hooks'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/lazy_load_hooks.rb:42:in `each'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/lazy_load_hooks.rb:42:in `run_load_hooks'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/finisher.rb:52:in `block in <module:Finisher>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:40:in `load_paths'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/devise-2.1.2/lib/devise/rails.rb:14:in `block in <class:Engine>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application/routes_reloader.rb:16:in `reload!'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:108:in `reload_routes!'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.9/lib/active_support/lazy_load_hooks.rb:34:in `call'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `run_initializers'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/application.rb:136:in `initialize!'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:54:in `each'
2012-11-14T20:14:38+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-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `run'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-11-14T20:14:38+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-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/initializable.rb:30:in `instance_exec'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `tap'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:50:in `<top (required)>'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-11-14T20:14:38+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-11-14T20:14:38+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-11-14T20:14:38+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-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:46:in `app'
2012-11-14T20:14:38+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-11-14T20:14:38+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-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands/server.rb:70:in `start'
2012-11-14T20:14:38+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.9/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-11-14T20:14:38+00:00 app[web.1]: from script/rails:6:in `require'
2012-11-14T20:14:38+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-11-14T20:14:40+00:00 heroku[web.1]: Process exited with status 1
2012-11-14T20:14:40+00:00 heroku[web.1]: State changed from starting to crashed
Can you try out the following versions in your Gemfile:
# Gemfile
gem 'rails', '3.2.9'
gem 'high_voltage', '~> 1.2.1'
gem 'thin'
# ...
The 1.2.1 release of High Voltage has the root route constraints baked into it. This will allow you to remove the routes completely from your config/routes.rb file.
Just set up an initializer for High Voltage:
# config/initializers/high_voltage.rb
HighVoltage.route_drawer = HighVoltage::RouteDrawers::Root
I deployed the above to a Cedar app on Heroku and it ran as expected.
So I've been trying to deploy a rails app to heroku and have been having some issues. I did a good amount of poking around through the logs and on SO but couldn't find anything to point me in the proper direction. Then again I just might be missing something obvious. Anyway any help would be greatly appreciated.
Command
git push -f heroku master
LOGS
2012-08-28T05:56:30+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-28T05:56:30+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-28T05:56:30+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-28T05:56:30+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-28T05:56:30+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-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
2012-08-28T05:56:30+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-28T05:56:30+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-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
2012-08-28T05:56:30+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-28T05:56:30+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-28T05:56:30+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-28T05:56:31+00:00 heroku[web.1]: Process exited with status 1
2012-08-28T05:56:31+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-28T05:56:36+00:00 heroku[slugc]: Slug compilation started
2012-08-28T05:57:19+00:00 heroku[api]: Release v6 created by raphael.shejnberg#gmail.com
2012-08-28T05:57:19+00:00 heroku[api]: Deploy 8bc52ce by raphael.shejnberg#gmail.com
2012-08-28T05:57:19+00:00 heroku[web.1]: State changed from crashed to starting
2012-08-28T05:57:20+00:00 heroku[slugc]: Slug compilation finished
2012-08-28T05:57:21+00:00 heroku[web.1]: Starting process with command `bundle exec rails server -p 6287`
2012-08-28T05:57:27+00:00 app[web.1]: => Rails 3.2.3 application starting in production on http://0.0.0.0:6287
2012-08-28T05:57:27+00:00 app[web.1]: => Ctrl-C to shutdown server
2012-08-28T05:57:27+00:00 app[web.1]: Exiting
2012-08-28T05:57:27+00:00 app[web.1]: => Booting WEBrick
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/models/project.rb:1:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x00000003d3b3e8> (NoMethodError)
2012-08-28T05:57:27+00:00 app[web.1]: => Call with -d to detach
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/models/project.rb:4:in `<class:Project>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:502:in `load_missing_constant'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:192:in `block in const_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:190:in `const_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:229:in `block in constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:228:in `constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/inflector/methods.rb:259:in `safe_constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/core_ext/string/inflections.rb:66:in `safe_constantize'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:152:in `_default_wrap_model'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:169:in `_set_wrapper_defaults'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:133:in `inherited'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/railties/routes_helpers.rb:7:in `block (2 levels) in with'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/railties/paths.rb:7:in `block (2 levels) in with'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `block in require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:251:in `require'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:359:in `require_or_load'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/app/controllers/projects_controller.rb:1:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:313:in `depend_on'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in `eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:439:in `block (2 levels) in eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:438:in `block in eager_load!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:436:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:225:in `require_dependency'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application/finisher.rb:53:in `block in <module:Finisher>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:4:in `block in <main>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:4:in `require'
2012-08-28T05:57:27+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-28T05:57:27+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-28T05:57:27+00:00 app[web.1]: from /app/config.ru:1:in `new'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/config.ru:1:in `<main>'
2012-08-28T05:57:27+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-28T05:57:27+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-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:46:in `app'
2012-08-28T05:57:27+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-28T05:57:27+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-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in `start'
2012-08-28T05:57:27+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-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in `block in <top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
2012-08-28T05:57:27+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
2012-08-28T05:57:27+00:00 app[web.1]: from script/rails:6:in `<main>'
2012-08-28T05:57:27+00:00 app[web.1]: from script/rails:6:in `require'
2012-08-28T05:57:28+00:00 heroku[web.1]: Process exited with status 1
2012-08-28T05:57:28+00:00 heroku[web.1]: State changed from starting to crashed
2012-08-28T05:57:38+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-sierra-9248.herokuapp.com/ dyno= queue= wait= service= status=503 bytes=
2012-08-28T05:57:38+00:00 heroku[router]: Error H10 (App crashed) -> GET floating-sierra- 9248.herokuapp.com/favicon.ico dyno= queue= wait= service= status=503 bytes=
I had to remove part of the logs for it to format right and be readable, its a deprecation warning
2012-08-28T05:57:24+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)
(called from at /app/config/environment.rb:5)
Environment.rb
# Load the rails application
require File.expand_path('../application', __FILE__)
# Initialize the rails application
Blog::Application.initialize!
I believe the problem is in this line of the log:
2012-08-28T05:57:27+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `has_attached_file' for #<Class:0x00000003d3b3e8> (NoMethodError)
Maybe the gem that you use to manipulate uploads and files is not installed. And remember that you can't use this gem without uploading your files to another server.
I followed the instructions for deploying a locomotivecms app to Heroku:
http://doc.locomotivecms.com/installation/heroku
heroku open command brings up an error page in the browser. heroku logs reveal following:
response => #<Excon::Response:0x00000004ee6548 #body="App not found.", #headers={"Cache-Control"=>"no-cache", "Content-Type"=>"application/json; charset=utf-8", "Date"=>"Fri, 01 Jun 2012 20:10:00 GMT", "Server"=>"nginx/1.0.14", "Status"=>"404 Not Found", "Strict-Transport-Security"=>"max-age=500", "X-Runtime"=>"40", "Content-Length"=>"14", "Connection"=>"keep-alive"}, #status=404>
2012-06-01T20:10:00+00:00 app[web.1]: request => {:connect_timeout=>60, :headers=>{"Accept"=>"application/json", "Accept-Encoding"=>"gzip", "Authorization"=>"Basic OmNjYzY1ZmMyNTFkODY1MmQ2NWJhOWVkMTA1MjJjM2E2NTc4NmRiNzM=", "User-Agent"=>"heroku-rb/0.1.8", "X-Heroku-API-Version"=>"3", "X-Ruby-Version"=>"1.9.3", "X-Ruby-Platform"=>"x86_64-linux", "Host"=>"api.heroku.com:443"}, :instrumentor_name=>"excon", :mock=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/app/vendor/bundle/ruby/1.9.1/gems/excon-0.13.4/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"api.heroku.com", :path=>"/apps/homeschool_minder/domains", :port=>"443", :query=>nil, :scheme=>"https", :expects=>200, :method=>:get}
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/excon-0.13.4/lib/excon/connection.rb:97:in `request'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/heroku-api-0.1.8/lib/heroku/api.rb:60:in `request'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/heroku-api-0.1.8/lib/heroku/api/domains.rb:27:in `get_domains'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive-heroku-0.0.1/lib/locomotive/heroku.rb:17:in `domains'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive-heroku-0.0.1/lib/locomotive/heroku/enabler.rb:21:in `enable_heroku'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:100:in `enable_hosting'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `block in load'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:68:in `after_configure'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:38:in `configure'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/config/initializers/locomotive.rb:1:in `<top (required)>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:in `start'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-06-01T20:10:00+00:00 app[web.1]: from config.ru:1:in `new'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `load'
2012-06-01T20:10:00+00:00 app[web.1]: from config.ru:3:in `require'
2012-06-01T20:10:00+00:00 app[web.1]: from config.ru:1:in `<main>'
2012-06-01T20:10:00+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2012-06-01T20:10:00+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-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
2012-06-01T20:10:00+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-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `eval'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
2012-06-01T20:10:00+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
2012-06-01T20:10:01+00:00 heroku[web.1]: Process exited with status 1
2012-06-01T20:10:02+00:00 heroku[web.1]: State changed from starting to crashed
2012-06-01T20:10:44+00:00 heroku[api]: Release v12 created by swapna.sony#gmail.com
2012-06-01T20:10:44+00:00 heroku[api]: Deploy 66801e9 by swapna.sony#gmail.com
2012-06-01T20:10:44+00:00 heroku[web.1]: State changed from crashed to created
2012-06-01T20:10:44+00:00 heroku[web.1]: State changed from created to starting
2012-06-01T20:10:45+00:00 heroku[slugc]: Slug compilation finished
2012-06-01T20:10:52+00:00 heroku[web.1]: Starting process with command `bundle exec thin start -R config.ru -e production -p 24745`
2012-06-01T20:10:58+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-06-01T20:10:58+00:00 app[web.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/config/environment.rb:5)
2012-06-01T20:11:03+00:00 app[web.1]: ...loading heroku extension
2012-06-01T20:11:03+00:00 app[web.1]: request => {:connect_timeout=>60, :headers=>{"Accept"=>"application/json", "Accept-Encoding"=>"gzip", "Authorization"=>"Basic OmNjYzY1ZmMyNTFkODY1MmQ2NWJhOWVkMTA1MjJjM2E2NTc4NmRiNzM=", "User-Agent"=>"heroku-rb/0.1.8", "X-Heroku-API-Version"=>"3", "X-Ruby-Version"=>"1.9.3", "X-Ruby-Platform"=>"x86_64-linux", "Host"=>"api.heroku.com:443"}, :instrumentor_name=>"excon", :mock=>false, :read_timeout=>60, :retry_limit=>4, :ssl_ca_file=>"/app/vendor/bundle/ruby/1.9.1/gems/excon-0.13.4/data/cacert.pem", :ssl_verify_peer=>true, :write_timeout=>60, :host=>"api.heroku.com", :path=>"/apps/homeschool_minder/domains", :port=>"443", :query=>nil, :scheme=>"https", :expects=>200, :method=>:get}
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/heroku-api-0.1.8/lib/heroku/api.rb:60:in `request'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive-heroku-0.0.1/lib/locomotive/heroku/enabler.rb:21:in `enable_heroku'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/excon-0.13.4/lib/excon/connection.rb:97:in `request'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/heroku-api-0.1.8/lib/heroku/api/domains.rb:27:in `get_domains'
2012-06-01T20:11:03+00:00 app[web.1]: /app/vendor/bundle/ruby/1.9.1/gems/excon-0.13.4/lib/excon/connection.rb:266:in `request_kernel': Expected(200) <=> Actual(404 Not Found) (Heroku::API::Errors::NotFound)
2012-06-01T20:11:03+00:00 app[web.1]: response => #<Excon::Response:0x000000044fae30 #body="App not found.", #headers={"Cache-Control"=>"no-cache", "Content-Type"=>"application/json; charset=utf-8", "Date"=>"Fri, 01 Jun 2012 20:11:03 GMT", "Server"=>"nginx/1.0.14", "Status"=>"404 Not Found", "Strict-Transport-Security"=>"max-age=500", "X-Runtime"=>"39", "Content-Length"=>"14", "Connection"=>"keep-alive"}, #status=404>
2012-06-01T20:11:03+00:00 app[web.
1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:100:in `enable_hosting'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive-heroku-0.0.1/lib/locomotive/heroku.rb:17:in `domains'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:68:in `after_configure'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/config/initializers/locomotive.rb:1:in `<top (required)>'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:236:in `load_dependency'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `block in load'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/locomotive_cms-2.0.0.rc7/lib/locomotive.rb:38:in `configure'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/dependencies.rb:245:in `load'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:588:in `block (2 levels) in <class:Engine>'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in `each'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:587:in `block in <class:Engine>'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `instance_exec'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:30:in `run'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:55:in `block in run_initializers'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `each'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/initializable.rb:54:in `run_initializers'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:136:in `initialize!'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in `method_missing'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/config/environment.rb:5:in `<top (required)>'
2012-06-01T20:11:03+00:00 app[web.1]: from config.ru:3:in `require'
2012-06-01T20:11:03+00:00 app[web.1]: from config.ru:1:in `<main>'
2012-06-01T20:11:03+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-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `eval'
2012-06-01T20:11:03+00:00 app[web.1]: from config.ru:3:in `block in <main>'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/rack/adapter/loader.rb:36:in `load'
2012-06-01T20:11:03+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-06-01T20:11:03+00:00 app[web.1]: from config.ru:1:in `new'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:185:in `run_command'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:71:in `start'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/runner.rb:151:in `run!'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/lib/thin/controllers/controller.rb:181:in `load_rackup_config'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `load'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/gems/thin-1.3.1/bin/thin:6:in `<top (required)>'
2012-06-01T20:11:03+00:00 app[web.1]: from /app/vendor/bundle/ruby/1.9.1/bin/thin:23:in `<main>'
2012-06-01T20:11:04+00:00 heroku[web.1]: Process exited with status 1
2012-06-01T20:11:05+00:00 heroku[web.1]: State changed from starting to crashed
What does it mean? Thanks.
Turned out to be incorrect app name in the locomotive.rb file. The app name did not match the app name on Heroku.