Ruby on rails Rails 5.1.4未启动并显示错误:JRuby或Windows不支持工作模式
我尝试启动我的rails服务器,但收到下面的错误消息,我如何修复它Ruby on rails Rails 5.1.4未启动并显示错误:JRuby或Windows不支持工作模式,ruby-on-rails,ruby,ruby-on-rails-4,Ruby On Rails,Ruby,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
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
根据Puma的问题页面,可以通过在Puma.rb
中注释掉以下行来解决:
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
根据Puma的问题页面,可以通过在Puma.rb
中注释掉以下行来解决:
workers Integer(ENV['WEB_CONCURRENCY'] || 2)
是否安装了
devkit
?是否安装了devkit
?