Note that there are some explanatory texts on larger screens.

plurals
  1. PObundler incorrectly trying to install "development" and "test" group gems in production
    text
    copied!<p>I have a small web app, which uses a bunch of gems. Some of them are only used for <code>test</code> and <code>development</code> environments. Now, when I try to start unicorn on the production server using the following command, it fails.</p> <pre><code>unicorn_rails -E production -D -c config/unicorn.rb </code></pre> <p>The error I see in the log files is:</p> <pre><code>Refreshing Gem list Could not find gem 'spork (&gt;= 0.9.0.rc2, runtime)' in any of the gem sources listed in your Gemfile. Try running `bundle install`. </code></pre> <p>I've pasted my gemfile below:</p> <pre><code>source 'http://rubygems.org' gem 'rails', '3.0.1' gem 'unicorn' gem 'mongoid', '&gt;= 2.0.0.beta.19' gem 'devise' gem 'cancan' gem 'haml', '&gt;= 3.0.0' gem 'bson' gem 'bson_ext' gem 'formtastic' gem 'bluecloth' group :production do gem 'capistrano' end group :development do gem 'haml-rails' gem 'hpricot', '0.8.2' gem 'ruby_parser', '2.0.5' gem 'less' gem 'rspec-rails', '&gt;= 2.0.1' end group :development,:test do gem 'spork', '&gt;=0.9.0.rc2' gem 'mongoid-rspec' end group :test do gem 'factory_girl_rails' gem 'autotest' gem 'cucumber-rails' gem 'cucumber' gem 'capybara' gem 'shoulda' gem 'database_cleaner' gem 'test_notifier' gem 'rspec', '2.0.1' gem 'launchy' end </code></pre> <p>Bundler is supposed to detect the right environment and ignore the other gems, right? Right now, I am deleting all the lines which are not in the default group on the server to get this working, but that's an ugly hack.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload