有人可以告诉我这个命令有什么问题以及为什么sidekiq
没有启动
run "cd #{release_path}/App && RAILS_ENV=#{fetch(:stage)} bundle exec sidekiq -e #{fetch(:stage)} -C #{shared_path}/config/sidekiq.yml -P #{sidekiq_pid} -L #{shared_path}/log/sidekiq.log -d"
但是capistrano正在运行此命令
remote: * executing "cd /home/user/applications/App/development/releases/00000000000001/App && RAILS_ENV=development bundle exec sidekiq -e development -C /home/user/applications/App/development/shared/config/sidekiq.yml -P /home/user/applications/App/development/shared/pids/sidekiq.pid -L /home/user/applications/App/development/shared/log/sidekiq.log -d"
remote: servers: ["localhost"]
remote: [localhost] executing command
remote: command finished in 696ms
但即使在sidekiq
创建sidekiq.pid
文件
答案 0 :(得分:1)
它可能对您有所帮助:
在config / initializers / sidekiq.rb中:
Sidekiq.configure_server do | config | config.redis = {url:'redis:// localhost:6379/12'} 端
Sidekiq.configure_client do | config | config.redis = {url:'redis:// localhost:6379/12'} 端
在config / sidekiq.yml:
:并发:5 :pidfile:tmp / pids / sidekiq.pid 分期: :并发:10 生产: :并发:20 :队列: - 默认 - [邮件,2]
在config / routes.rb中:
要求“sidekiq / web”
mount Sidekiq :: Web,位于:“/ sidekiq”