0 ruby ruby-on-rails ruby-on-rails-4
我尝试启动 Rails 服务器,但收到以下错误消息,请问如何修复它
C:\Sites\sample_app>rails s
=> Booting Puma
=> Rails 5.1.4 application starting in development
=> Run `rails server -h` for more startup options
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?
ERROR: worker mode not supported on JRuby or Windows
Exiting
Run Code Online (Sandbox Code Playgroud)
根据Puma 的这个问题页面,可以通过注释掉以下行来解决puma.rb:
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3263 次 |
| 最近记录: |