【问题标题】:Rails server exits immediately (thin)Rails 服务器立即退出(瘦)
【发布时间】: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) SELECT schema_migrations.* FROM schema_migrations ActiveRecord::SchemaMigration Load (0.4ms) SELECT schema_migrations.* FROM schema_migrations 按版本排序
  • 你的 Gemfile 有 gem 'thin' 吗?如果你删除它,它应该在 WEBrick 上运行。

标签: ruby-on-rails thin


【解决方案1】:

'rails server' starts thin twice, shuts both down. Cucumber still works ...在您的情况下,删除 gemfile.lock 并运行另一个包安装。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-11-05
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多