{"action":"created","issue":{"url":"https://api.github.com/repos/spree/spree/issues/6581","labels_url":"https://api.github.com/repos/spree/spree/issues/6581/labels{/name}","comments_url":"https://api.github.com/repos/spree/spree/issues/6581/comments","events_url":"https://api.github.com/repos/spree/spree/issues/6581/events","html_url":"https://github.com/spree/spree/issues/6581","id":93837595,"number":6581,"title":"Unable to run `rails console` in production env for default app","user":{"login":"colinrymer","id":724007,"avatar_url":"https://avatars.githubusercontent.com/u/724007?v=3","gravatar_id":"","url":"https://api.github.com/users/colinrymer","html_url":"https://github.com/colinrymer","followers_url":"https://api.github.com/users/colinrymer/followers","following_url":"https://api.github.com/users/colinrymer/following{/other_user}","gists_url":"https://api.github.com/users/colinrymer/gists{/gist_id}","starred_url":"https://api.github.com/users/colinrymer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/colinrymer/subscriptions","organizations_url":"https://api.github.com/users/colinrymer/orgs","repos_url":"https://api.github.com/users/colinrymer/repos","events_url":"https://api.github.com/users/colinrymer/events{/privacy}","received_events_url":"https://api.github.com/users/colinrymer/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/spree/spree/labels/unverified","name":"unverified","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-08T16:46:33Z","updated_at":"2015-07-11T15:37:17Z","closed_at":null,"body":"When trying to run `RACK_ENV=production bundle exec rails console` on a freshly installed Spree application, the app exits with an `ActiveSupport::Concern::MultipleIncludedBlocks` error.\r\n\r\n## Steps to reproduce:\r\n\r\n1. Install Rails 4.2.2 - `gem install rails -v 4.2.2`\r\n2. Install spree - `gem install spree`\r\n3. Install spree_cmd - `gem install spree_cmd`\r\n4. Create Rails app - `rails _4.2.2_ new testapp`\r\n5. Install spree - `spree install testapp --branch \"3-0-stable\"`\r\n6. Accept all default options for spree installation\r\n7. Navigate to Rails app - `cd testapp`\r\n8. Run `RACK_ENV=production bundle exec rails console`\r\n\r\n## What I Expect vs What Happens\r\nI expect to be put into the rails console; instead the application raises an error and exits.\r\n\r\n## Gemfile & Gemfile.lock\r\nhttps://gist.github.com/colinrymer/6390d32f7f850ae9433f\r\n\r\n## Stacktrace\r\n```\r\n$ RACK_ENV=production bundle exec rails c\r\n[WARNING] You are not setting Devise.secret_key within your application!\r\nYou must set this in config/initializers/devise.rb. Here's an example:\r\n\r\nDevise.secret_key = \"0b38e4151c0edb708403a6a6d0faa2cd232cc97f6336dc53796e64540650ce248481695bc6446a66a7fa90d275edcb758e20\"\r\nInstance method \"open\" is already defined in Object, use generic helper instead or set StateMachines::Machine.ignore_method_conflicts = true.\r\n/Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/concern.rb:126:in `included': Cannot define multiple 'included' blocks for a Concern (ActiveSupport::Concern::MultipleIncludedBlocks)\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/bundler/gems/spree-0285c1325a8d/core/app/models/spree/order/checkout.rb:6:in `<module:Checkout>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/bundler/gems/spree-0285c1325a8d/core/app/models/spree/order/checkout.rb:3:in `<class:Order>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/bundler/gems/spree-0285c1325a8d/core/app/models/spree/order/checkout.rb:2:in `<module:Spree>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/bundler/gems/spree-0285c1325a8d/core/app/models/spree/order/checkout.rb:1:in `<top (required)>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:457:in `load'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:457:in `block in load_file'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:647:in `new_constants_in'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:456:in `load_file'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:354:in `require_or_load'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:317:in `depend_on'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:233:in `require_dependency'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:472:in `block (2 levels) in eager_load!'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:471:in `each'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:471:in `block in eager_load!'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:469:in `each'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:469:in `eager_load!'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/engine.rb:346:in `eager_load!'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/application/finisher.rb:56:in `each'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/application/finisher.rb:56:in `block in <module:Finisher>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `instance_exec'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/initializable.rb:30:in `run'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/initializable.rb:55:in `block in run_initializers'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:226:in `block in tsort_each'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:429:in `each_strongly_connected_component_from'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:347:in `block in each_strongly_connected_component'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `call'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:345:in `each_strongly_connected_component'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:224:in `tsort_each'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/tsort.rb:203:in `tsort_each'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/initializable.rb:54:in `run_initializers'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/railties-4.2.2/lib/rails/application.rb:352:in `initialize!'\r\n\tfrom /private/tmp/testapp/config/environment.rb:5:in `<top (required)>'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/polyglot-0.3.5/lib/polyglot.rb:65:in `require'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `block in require'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:240:in `load_dependency'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/activesupport-4.2.2/lib/active_support/dependencies.rb:274:in `require'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application.rb:92:in `preload'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application.rb:143:in `serve'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application.rb:131:in `block in run'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application.rb:125:in `loop'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application.rb:125:in `run'\r\n\tfrom /Users/colin/.gem/ruby/2.2.2/gems/spring-1.3.6/lib/spring/application/boot.rb:18:in `<top (required)>'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom /Users/colin/.rubies/ruby-2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'\r\n\tfrom -e:1:in `<main>'\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/spree/spree/issues/comments/120634471","html_url":"https://github.com/spree/spree/issues/6581#issuecomment-120634471","issue_url":"https://api.github.com/repos/spree/spree/issues/6581","id":120634471,"user":{"login":"alepore","id":557414,"avatar_url":"https://avatars.githubusercontent.com/u/557414?v=3","gravatar_id":"","url":"https://api.github.com/users/alepore","html_url":"https://github.com/alepore","followers_url":"https://api.github.com/users/alepore/followers","following_url":"https://api.github.com/users/alepore/following{/other_user}","gists_url":"https://api.github.com/users/alepore/gists{/gist_id}","starred_url":"https://api.github.com/users/alepore/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alepore/subscriptions","organizations_url":"https://api.github.com/users/alepore/orgs","repos_url":"https://api.github.com/users/alepore/repos","events_url":"https://api.github.com/users/alepore/events{/privacy}","received_events_url":"https://api.github.com/users/alepore/received_events","type":"User","site_admin":false},"created_at":"2015-07-11T15:37:17Z","updated_at":"2015-07-11T15:37:17Z","body":"mhh i open production rails console all the times using `bundle exec rails console production`, also using `3-0-stable`"}}