Attempting to deploy Rails app to Heroku - Application Error? -


i'm not sure why happening. tried heroku restart , running herok run rake db:migrate suggested thread, didn't work.

just clarify, application works fine on localhost.

heroku logs:

2014-03-23t21:07:47.989154+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each' 2014-03-23t21:07:47.989154+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component' 2014-03-23t21:07:47.989709+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:48:in `app' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2014-03-23t21:07:47.989709+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `tap' 2014-03-23t21:07:47.989709+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `<top (required)>' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:76:in `block in <top (required)>' 2014-03-23t21:07:47.989883+00:00 app[web.1]:    bin/rails:4:in `require' 2014-03-23t21:07:47.990048+00:00 app[web.1]:    bin/rails:4:in `<main>' 2014-03-23t21:07:49.415499+00:00 heroku[web.1]: process exited status 1 2014-03-23t21:07:49.431611+00:00 heroku[web.1]: state changed starting crashed 2014-03-23t21:07:49.431611+00:00 heroku[web.1]: state changed crashed starting 2014-03-23t21:07:54.457611+00:00 heroku[web.1]: starting process command `bin/rails server -p 51763 -e production` 2014-03-23t21:08:04.929404+00:00 app[web.1]: => booting webrick 2014-03-23t21:08:04.929404+00:00 app[web.1]: => run `rails server -h` more startup options 2014-03-23t21:08:04.934429+00:00 app[web.1]:  2014-03-23t21:08:04.929404+00:00 app[web.1]: => ctrl-c shutdown server 2014-03-23t21:08:04.929404+00:00 app[web.1]: exiting 2014-03-23t21:08:04.934429+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails/routes.rb:481:in `raise_no_secret_key': devise.secret_key not set. please add following devise initializer: (runtimeerror) 2014-03-23t21:08:04.934429+00:00 app[web.1]:  2014-03-23t21:08:04.934429+00:00 app[web.1]:   config.secret_key = '0964de5caa044bc2ff80ae8c6a0f635d8088b348014048dd7a822e5156b4abb76e6a67d2ad2b3a77ec34221815146e3ce8c09822ec3058af44f6c85ae53073e0' 2014-03-23t21:08:04.934429+00:00 app[web.1]: please ensure restarted application after installing devise or setting key. 2014-03-23t21:08:04.929404+00:00 app[web.1]: => rails 4.0.3 application starting in production on http://0.0.0.0:51763 2014-03-23t21:08:04.934429+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:341:in `instance_exec' 2014-03-23t21:08:04.934429+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:341:in `eval_block' 2014-03-23t21:08:04.934429+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/actionpack-4.0.3/lib/action_dispatch/routing/route_set.rb:319:in `draw' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/config/routes.rb:1:in `<top (required)>' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load' 2014-03-23t21:08:04.934429+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails/routes.rb:206:in `devise_for' 2014-03-23t21:08:04.934429+00:00 app[web.1]:    /app/config/routes.rb:2:in `block in <top (required)>' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `each' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `load_paths' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:16:in `reload!' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application.rb:102:in `reload_routes!' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/devise-3.2.3/lib/devise/rails.rb:14:in `block in <class:engine>' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `load' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:44:in `each' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application/routes_reloader.rb:40:in `block in load_paths' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:44:in `run_load_hooks' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application/finisher.rb:55:in `block in <module:finisher>' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:30:in `instance_exec' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:150:in `block in tsort_each' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:45:in `block in run_load_hooks' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:182:in `block in each_strongly_connected_component' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:180:in `each_strongly_connected_component' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:148:in `tsort_each' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:54:in `run_initializers' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:183:in `block (2 levels) in each_strongly_connected_component' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/tsort.rb:219:in `each_strongly_connected_component_from' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:55:in `block in run_initializers' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:214:in `load_dependency' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/config.ru:3:in `block in <main>' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `instance_eval' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:55:in `initialize' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/railtie/configurable.rb:30:in `method_missing' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `block in require' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/config/environment.rb:5:in `<top (required)>' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:229:in `require' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:40:in `parse_file' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:277:in `build_app_and_options_from_config' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:199:in `app' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:314:in `wrapped_app' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:48:in `app' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands/server.rb:75:in `start' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/config.ru:in `<main>' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `eval' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/builder.rb:49:in `new_from_string' 2014-03-23t21:08:04.934783+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/dependencies.rb:223:in `block in load' 2014-03-23t21:08:04.938108+00:00 app[web.1]:    bin/rails:4:in `require' 2014-03-23t21:08:04.938108+00:00 app[web.1]:    bin/rails:4:in `<main>' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `tap' 2014-03-23t21:08:04.938108+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:71:in `<top (required)>' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.3/lib/active_support/lazy_load_hooks.rb:36:in `call' 2014-03-23t21:08:04.935072+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/initializable.rb:30:in `run' 2014-03-23t21:08:04.935788+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/application.rb:215:in `initialize!' 2014-03-23t21:08:04.936062+00:00 app[web.1]:    /app/config.ru:in `new' 2014-03-23t21:08:04.937179+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.0.3/lib/rails/commands.rb:76:in `block in <top (required)>' 2014-03-23t21:08:06.548407+00:00 heroku[web.1]: process exited status 1 2014-03-23t21:08:06.574231+00:00 heroku[web.1]: state changed starting crashed 2014-03-23t21:08:07.873844+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=sixtasks.herokuapp.com request_id=7318cb7f-49d1-4d8a-bafd-e269821ce1bc fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:08:08.324562+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/favicon.ico host=sixtasks.herokuapp.com request_id=f03ca9a7-b3a8-4c7e-b7d5-cd3d7b7a280e fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:08:13.353853+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/favicon.ico host=sixtasks.herokuapp.com request_id=99ccb00a-d386-402d-8266-4b0e4dc39bc1 fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:08:11.632076+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=sixtasks.herokuapp.com request_id=0e9f41d3-f213-4a26-9008-d8a5fad2d78a fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:08:11.885694+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/favicon.ico host=sixtasks.herokuapp.com request_id=283244bb-5cde-4c39-8835-6b17cb031725 fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:08:13.179142+00:00 heroku[router]: at=error code=h10 desc="app crashed" method=get path=/ host=sixtasks.herokuapp.com request_id=3ea65bb3-7620-497c-a006-d70eacddf0d8 fwd="173.35.60.133" dyno= connect= service= status=503 bytes= 2014-03-23t21:13:46+00:00 heroku[slug-compiler]: slug compilation started 2014-03-23t21:14:19+00:00 heroku[slug-compiler]: slug compilation finished 2014-03-23t21:14:19.669604+00:00 heroku[web.1]: state changed crashed starting 2014-03-23t21:14:19.480299+00:00 heroku[api]: deploy e4f2c99 andrew@gmail.com 2014-03-23t21:14:19.480401+00:00 heroku[api]: release v8 created andrew.louis93@gmail.com 2014-03-23t21:14:24.461087+00:00 heroku[web.1]: starting process command `bin/rails server -p 22691 -e production` 

i think part relevant part.

2014-03-23t21:08:04.934429+00:00 app[web.1]: /app/vendor/bundle/ruby/2.0.0/gems/devise- 3.2.3/lib/devise/rails/routes.rb:481:in `raise_no_secret_key': devise.secret_key not set. please add following devise initializer: (runtimeerror) 2014-03-23t21:08:04.934429+00:00 app[web.1]:   config.secret_key = '0964de5caa044bc2ff80ae8c6a0f635d8088b348014048dd7a822e5156b4abb76e6a67d2ad2b3a77ec34221815146e3ce8c09822ec3058af44f6c85ae53073e0' 2014-03-23t21:08:04.934429+00:00 app[web.1]: please ensure restarted application after installing devise or setting key. 

seems have set secret key in local host not on heroku client. can post devise configuration file? if setting secret key with

env['secret_key'] 

or need do

heroku config:set secret_key=your secret key here 

for heroku application access it. comment if have question!

[edit1] add following line yo config/initializers/devise.rb

config.secret_key = '0964de5caa044bc2ff80ae8c6a0f635d8088b348014048dd7a822e5156b4abb76e6a67d2ad2b3a77ec34221815146e3ce8c09822ec3058af44f6c85ae53073e0'


Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -