ruby - Can't activate rails (= 2.3.15), already activated rails-3.2.17 -
i'm trying upgrade rails 2.3.15 3.2.17
i did bundle update
, , changed controller syntax needed.
trying start server , i'm getting following error, familiar this?
>> bundle exec script/server /opt/boxen/rbenv/versions/1.9.3-p545/lib/ruby/gems/1.9.1/gems/bundler-1.7.0/lib/bundler/rubygems_integration.rb:266:in `block in replace_gem': can't activate rails (= 2.3.15), activated rails-3.2.17. make sure dependencies added gemfile. (gem::loaderror) /users/neo/src/myapp/config/boot.rb:60:in `load_rails_gem' /users/neo/src/myapp/config/boot.rb:54:in `load_initializer' /users/neo/src/myapp/config/boot.rb:38:in `run' /users/neo/src/myapp/boot.rb:11:in `boot!' /users/neo/src/myapp/config/boot.rb:114:in `<top (required)>' script/server:2:in `require' script/server:2:in `<main>'
my gemfile:
source "https://rubygems.org" #ruby "1.8.7", :group => :staging gem 'rails', '3.2.17' gem 'rake', '0.9.2' gem "aws-s3", :require => "aws/s3" gem 'authlogic', '~> 2.1.1' gem 'redcloth', :require => "redcloth" gem 'logging' gem 'panda' gem 'hoptoad_notifier' gem 'fastercsv' gem "comma", "~> 2.0" # specifying -v add support rails 2 gem 'pg' gem 'cloudfront-signer' gem 'newrelic_rpm' gem 'thin' group :development gem 'heroku' gem 'taps' gem 'sqlite3' gem 'pry' gem 'rdoc' end gem 'heroku_san' group :test gem 'pg' end
any appreciated! thank you
edit:
with rails s
or bundle exec rails s / server
, rails message, below:
rails new app_path [options] options: -r, [--ruby=path] # path ruby binary of choice # default: /opt/boxen/rbenv/versions/1.9.3-p545/bin/ruby -b, [--builder=builder] # path application builder (can filesystem path or url) -m, [--template=template] # path application template (can filesystem path or url) [--skip-gemfile], [--no-skip-gemfile] # don't create gemfile [--skip-bundle], [--no-skip-bundle] # don't run bundle install -g, [--skip-git], [--no-skip-git] # skip git ignores , keeps -o, [--skip-active-record], [--no-skip-active-record] # skip active record files -s, [--skip-sprockets], [--no-skip-sprockets] # skip sprockets files -d, [--database=database] # preconfigure selected database . . .
you should using
bundle exec rails server
edit: used in script directory managed rails command. when upgrading, found easier use gemset isolate new gems old necessary switch , forth, , new rails command not play nicely old.
Comments
Post a Comment