This project is archived and is in readonly mode.

#6184 ✓resolved
Jeremy Grant

'rails server' command ignores BUNDLE_GEMFILE

Reported by Jeremy Grant | December 17th, 2010 @ 06:44 AM | in 3.0.5

When running
rails new APP_NAME
the config/boot.rb that is generated in Rails 3 ignores and overrides the BUNDLE_GEMFILE environment variable with the default of 'Gemfile'.
see:
https://github.com/rails/rails/blob/master/railties/lib/rails/gener...

You can workaround this with no code changes by using
bundle exec rails server

Or just change config/boot.rb line 4 from

gemfile = File.expand_path('../../Gemfile', FILE)
to something like
gemfile = File.expand_path('../../' + (ENV['BUNDLE_GEMFILE'] || 'Gemfile'), FILE)

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Attachments

Referenced by

Pages