Closed kirantpatil closed 10 years ago
I have edited db file and provided the values for client id and secret and still getting the same error.
I have pushed a commit for the install. It was broken in a few places by the new Google Auth code.
Please pull the latest commit and retry.
Thanks, will test the fix and report if there are any issue by tomorrow.
The fix has resolved the issue.
With the migrated database, I cloned again the project and try to do db:migrate on the old database and am getting below error
db:migrate error
kiran@jaihanuman:~/testcasedb$ bundle exec rake db:migrate RAILS_ENV='production' rake aborted! undefined method
value' for nil:NilClass /home/kiran/testcasedb/config/initializers/omniauth.rb:3:in
block in <top (required)>' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:ininstance_eval' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/rack-1.4.5/lib/rack/builder.rb:51:in
initialize' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/omniauth-1.1.3/lib/omniauth/builder.rb:7:ininitialize' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:43:in
new' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:43:inbuild' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:113:in
block in build' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:113:ineach' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:113:in
inject' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.14/lib/action_dispatch/middleware/stack.rb:113:inbuild' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/engine.rb:475:in
app' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/application/finisher.rb:31:inblock in <module:Finisher>' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:in
instance_exec' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:30:inrun' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:55:in
block in run_initializers' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:ineach' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/initializable.rb:54:in
run_initializers' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/application.rb:136:ininitialize!' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/railtie/configurable.rb:30:in
method_missing' /home/kiran/testcasedb/config/environment.rb:5:in<top (required)>' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:in
require' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:inblock in require' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:236:in
load_dependency' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.14/lib/active_support/dependencies.rb:251:inrequire' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/application.rb:103:in
require_environment!' /home/kiran/testcasedb/vendor/bundle/ruby/1.9.1/gems/railties-3.2.14/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks' Tasks: TOP => db:migrate => environment (See full trace by running task with --trace)