在启动 rails webrick 服务器时报告错误 [英] Reporting errors in launching rails webrick server
问题描述
我有一个在 rails 2.3.2 上运行的应用程序,现在我将 Rails 版本升级到 3.0.3
I have an application which runs on rails 2.3.2 and now i upgraded my version of rails to 3.0.3
在我尝试通过键入 rails server
我得到了一个我应该传递给命令的参数列表.这表明服务器没有成功启动.但是,在哪里可以获得启动 rails 服务器时遇到的错误列表?
I get a list of arguments that i should pass to the command. This suggests the server did not start successfully. However, where can i get a list of the errors encountered in starting rails server ?
此外,我使用 RVM 来管理 Rails 版本.但是,即使更改了当前运行的rails 版本,radrails 仍然使用旧版本的rails.如何指示 radrails 使用当前系统 Rails 版本?
Also, i am using RVM for managing rails versions. However, even after changing the current running version of rails, radrails is still using the old version of rails. How can i instruct radrails to use the current system rails version ?
---> rails server
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 public/images
exists public/javascripts
exists public/stylesheets
exists script/performance
exists test/fixtures
exists test/functional
exists test/integration
exists test/performance
exists test/unit
exists vendor
exists vendor/plugins
exists tmp/sessions
exists tmp/sockets
exists tmp/cache
exists tmp/pids
identical Rakefile
identical README
identical app/controllers/application_controller.rb
identical app/helpers/application_helper.rb
identical config/database.yml
identical config/routes.rb
identical config/locales/en.yml
identical config/initializers/backtrace_silencers.rb
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
identical config/initializers/new_rails_defaults.rb
推荐答案
那些不是错误,而是 rails 2.3.x 中rails"命令的输出
Those are not errors, it's the output of the "rails" command from rails 2.3.x
您在运行命令的目录中创建了一个名为 server 的新 Rails 项目.
You created a new rails project called server in the directory where u ran the command.
检查 rvm 上的 gemset,看看您是否使用了正确的 rails 版本,并检查您的应用程序中的 config/environment.rb
并查看您的应用程序是否使用 rails 3.
Check the gemset on rvm and see if you're using the correct rails version and check the config/environment.rb
in your application and see if your application is using rails 3.
你可以在RAILS_GEM_VERSION
这篇关于在启动 rails webrick 服务器时报告错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!