我已将Rails项目克隆到我的本地。我做了一个rake db:migrate。我工作得很好。现在我想启动我的服务器。我运行命令
rails s
此命令实际上会在现有应用内创建一个新项目。 为什么会这样?
它抛出以下跟踪,服务器无法启动。
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:55:in `require': iconv will be deprecated in the future, use String#encode instead.
/var/lib/gems/1.9.1/gems/rails-2.3.16/lib/rails_generator/generators/applications/app/app_generator.rb:7: Use RbConfig instead of obsolete and deprecated Config.
exists
exists app/controllers
exists app/helpers
exists app/models
exists app/views/layouts
exists config/environments
exists config/initializers
exists config/locales
exists db
exists doc
exists lib
exists lib/tasks
exists log
exists test/fixtures
exists tmp/sockets
exists tmp/cache
exists tmp/pids
identical Rakefile
identical README
identical app/controllers/application_controller.rb b
overwrite config/initializers/session_store.rb? (enter "h" for help) [Ynaqdh] y
force config/initializers/session_store.rb
overwrite config/initializers/cookie_verification_secret.rb? (enter "h" for help) [Ynaqdh] y
identical script/about
identical script/console
identical script/dbconsole
identical script/destroy
identical script/generate
identical public/404.html
identical public/422.html
identical public/500.html
identical public/index.html
identical public/favicon.ico
identical public/robots.txt
identical public/images/rails.png
identical public/javascripts/prototype.js
identical public/javascripts/effects.js
identical public/javascripts/dragdrop.js
我应该更改任何配置吗?
答案 0 :(得分:1)
您必须使用旧版本的rails,Rails版本< 3.0。
在Rails版本< 3.0你必须用
启动服务器ruby script/server
答案 1 :(得分:0)
步骤: