【发布时间】:2014-05-09 01:07:53
【问题描述】:
rails s 导致服务器立即退出。与我发现的其他帖子相反,我没有收到错误代码。日志是:
Resque::Helpers will be gone with no replacement in Resque 2.0.0.
Thin web server (v1.6.1 codename Death Proof)
Maximum connections set to 1024
Listening on 0.0.0.0:62932, CTRL+C to stop
=> Booting Thin
=> Rails 4.0.0 application starting in development on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Ctrl-C to shutdown server
Thin web server (v1.6.1 codename Death Proof)
Maximum connections set to 1024
Listening on 0.0.0.0:3000, CTRL+C to stop
Exiting
我使用的是 Rails 4.0.0
【问题讨论】:
-
你试过不瘦吗?
-
如果你看
log/development.log,有没有错误? -
没有。我不知道瘦是什么(好吧我刚刚发现它是一个ruby服务器。它似乎与我正在使用的nginx有关)我如何在没有瘦的情况下启动ruby?
-
in
log/development.log我只有两行用于 ActiveRecord 模式迁移: ActiveRecord::SchemaMigration Load (0.7ms) SELECTschema_migrations.* FROMschema_migrationsActiveRecord::SchemaMigration Load (0.4ms) SELECTschema_migrations.* FROMschema_migrations按版本排序 -
你的 Gemfile 有
gem 'thin'吗?如果你删除它,它应该在 WEBrick 上运行。
标签: ruby-on-rails thin