rails s
gives me the following output:
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 version is really old, but it's not up to me. Also, my log files are empty.
Does anyone have any ideas?
In rails 2.x the command to run the server is
script/server
rails s
in 2.x is creating a new rails app named "s", not starting a server.
对于Rails 2.x,在项目目录中使用以下命令:
ruby script/server
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.