ruby - Bundle install to development -


for reason when run bundle install installs production:

your bundle complete! installed ./rails_env=production

arrrghh, how switch development??

notes:

  • i haven't modified environment files
  • when run rails.env console "development"

gem file:

source 'http://rubygems.org'  gem 'rails', '3.0.3' gem 'sqlite3-ruby', '1.3.2', :require => 'sqlite3'  group :development   gem 'rspec-rails'   gem 'nokogiri'   gem 'will_paginate' end  group :test   gem 'rspec' end 

also worth noting, creates folder in app called rails_env=production posted question here guess linked issue.

update

when run bundle config following information, can see path set culprit! ideas how change this? tried re-installing bundler gem no avail, maybe bug within bundler?

$ bundle config settings listed in order of priority. top value used.  disable_shared_gems   set local app (/users/zinc/ror/site/.bundle/config): "1"  path   set local app (/users/zinc/ror/site/.bundle/config): "rails_env=production" 

the explanation in in bundler manual. read heading grouping dependencies. specifically

bundler remember installed gems using --without production. curious readers, bundler stores flag in app_root/.bundle/config. can see of settings bundler saved there running bundle config, print out global settings (stored in ~/.bundle/config), , settings set via environment variables. more information on configuring bundler, please see advanced usage: configuring bundler.

and solution pass different value property or remove file app_root/.bundle/config.


Comments

Popular posts from this blog

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

apache - Add omitted ? to URLs -

php - How can I stop spam on my custom forum/blog? -