rails s
给出了以下输出:
exists
exists app/controllers
...
exists tmp/cache
exists tmp/pids
identical Rakefile
identical README
identical db/seeds.rb
identical config/initializers/backtrace_silencers.rb
identical config/initializers/inflections.rb
identical config/initializers/mime_types.rb
identical config/initializers/new_rails_defaults.rb
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
force config/initializers/cookie_verification_secret.rb
identical config/environment.rb
....
identical config/boot.rb
identical public/javascripts/controls.js
identical public/javascripts/application.js
identical doc/README_FOR_APP
identical log/server.log
identical log/production.log
identical log/development.log
identical log/test.log
My Rails版本真的很旧,但这不是我的意思。此外,我的日志文件为空。
有没有人有任何想法?
答案 0 :(得分:2)
在rails 2.x中,运行服务器的命令是
script/server
2.x中的 rails s
正在创建一个名为“s”的新rails应用程序,而不是启动服务器。
答案 1 :(得分:1)
对于Rails 2.x,在项目目录中使用以下命令:
ruby script/server