Created
March 31, 2016 15:18
-
-
Save embasbm/0b4213262685c9eaed7aeff0097bf895 to your computer and use it in GitHub Desktop.
sidekiq not showing "INFO: Starting processing" when using capistrano-sidekiq
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
capistrano-sidekiq (0.5.4) | |
capistrano | |
sidekiq (>= 3.4) | |
... | |
sidekiq (4.1.1) | |
concurrent-ruby (~> 1.0) | |
connection_pool (~> 2.2, >= 2.2.0) | |
redis (~> 3.2, >= 3.2.1) | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sidekiq.configure_server do |config| | |
config.redis = { url: 'redis://localhost:6379/1', namespace: "MyApp_#{Rails.env}" } | |
end | |
Sidekiq.configure_client do |config| | |
config.redis = { url: 'redis://localhost:6379/1', namespace: "MyApp_#{Rails.env}" } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
:verbose: false | |
:concurrency: 5 | |
:queues: | |
- [queue_xyz, 2] | |
- [queue_abc, 3] | |
- [queue_123, 4] | |
development: | |
:concurrency: 5 | |
staging: | |
:concurrency: 10 | |
production: | |
:concurrency: 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :sidekiq_env, 'staging' | |
set :sidekiq_config, -> { File.join(shared_path, 'config', 'sidekiq.yml') } | |
set :sidekiq_pid, -> { File.join(shared_path, 'tmp', 'pids', 'sidekiq.pid') } | |
set :sidekiq_log, -> { File.join(shared_path, 'log', 'sidekiq.log') } | |
set :sidekiq_default_hooks, true | |
set :sidekiq_role, :web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment