seuros / capistrano-sidekiq

Sidekiq integration for Capistrano
Other
557 stars 308 forks source link

Tried capistrano sidekiq 3.0.0.alpha.1 with sidekiq7 and nothing happens #315

Open silva96 opened 1 year ago

silva96 commented 1 year ago

I updated all my deps including sidekiq and capistrano-sidekiq, now the whole capistrano deployment log does not include a single reference to the word "sidekiq", no rake task from capistrano-sidekiq is being invoked on deployment.

# Gemfile
group :development do
  gem 'capistrano', require: false
  gem 'capistrano3-puma', require: false
  gem 'capistrano-asdf', require: false
  gem 'capistrano-rails', require: false
  gem 'capistrano-sidekiq', git: 'https://github.com/seuros/capistrano-sidekiq', branch: 'master'
  ...
end
# Capfile
# Load DSL and set up stages
require 'capistrano/setup'

# Include default deployment tasks
require 'capistrano/deploy'
require 'capistrano/asdf'
require 'capistrano/rails'
require 'capistrano/puma'
require 'capistrano/sidekiq'
install_plugin Capistrano::Puma
install_plugin Capistrano::Puma::Systemd
install_plugin Capistrano::Sidekiq
install_plugin Capistrano::Sidekiq::Systemd
# deploy.rb
...
set :sidekiq_service_unit_name, 'sidekiq'
set :sidekiq_service_unit_user, :system
set :sidekiq_config, 'config/sidekiq.yml'

Downgrading to 2.3 works again. Please let me know how can I help.

soundnotation commented 11 months ago

Same with 3.0.0.alpha2. No sidekiq tasks are run while deploying.

Yegorov commented 8 months ago

You need append worker role for you server, for example:

server '192.168.3.111', user: 'deployer', roles: %w{web app db worker}