在生产环境中无法在数字海洋飞沫中运行sidekiq

时间:2019-07-17 11:17:51

标签: ruby-on-rails digital-ocean sidekiq

我按照this教程在生产环境中运行sidekiq并进行了相应的修改。启动sidekiq服务sudo cat /var/log/syslog后运行日志sudo service sidekiq start的命令时,我得到了以下错误

bundler/definition.rb:495:in `validate_ruby!': Your Ruby version is 2.5.3, but your Gemfile specified 2.5.5 (Bundler::RubyVersionMismatch)
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 sidekiq[1022]: #011from /home/rails/.rvm/gems/ruby-2.5.3/gems/bundler-2.0.2/lib/bundler/definition.rb:470:in `validate_runtime!'
 Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 sidekiq[1022]: #011from /home/rails/.rvm/gems/ruby-2.5.3/gems/bundler-2.0.2/lib/bundler.rb:101:in `setup'
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 sidekiq[1022]: #011from /home/rails/.rvm/gems/ruby-2.5.3/gems/bundler-2.0.2/lib/bundler/setup.rb:20:in `<top (required)>'
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 sidekiq[1022]: #011from /home/rails/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 sidekiq[1022]: #011from /home/rails/.rvm/rubies/ruby-2.5.3/lib/ruby/site_ruby/2.5.0/rubygems/core_ext/kernel_require.rb:54:in `require'
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 systemd[1]: sidekiq.service: Main process exited, code=exited, status=1/FAILURE
Jul 17 11:09:26 ruby-rails-s-1vcpu-1gb-sgp1-01 systemd[1]: sidekiq.service: Failed with result 'exit-code'.

我根据宝石文件的要求检查了我的红宝石版本的2.5.5。无法调试此。谁能告诉我我在这里做错了吗?

0 个答案:

没有答案