Skip to content

Commit

Permalink
Added fix for sidekiq
Browse files Browse the repository at this point in the history
  • Loading branch information
strtwtsn committed Nov 1, 2019
1 parent c9855eb commit 5d6fd35
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
5 changes: 3 additions & 2 deletions Capfile
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,12 @@ require "capistrano/rails/migrations"
require "capistrano/passenger"
require 'capistrano/maintenance'
require 'whenever/capistrano'
require 'capistrano/sidekiq'

#require 'capistrano/sidekiq'



set :services, [:sidekiq_pp]
require 'capistrano/service'



Expand Down
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ group :development do
gem 'capistrano-passenger', '0.2.0', require: false
gem 'capistrano-sidekiq','1.0.2'
gem 'capistrano-git-with-submodules', '2.0.3'
gem 'capistrano-service'
# gem 'listen', '~> 3.1.5'
# gem 'spring-watcher-listen', '~> 2.0.0'
#
Expand Down
3 changes: 3 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -794,6 +794,8 @@ GEM
capistrano-rvm (0.1.2)
capistrano (~> 3.0)
sshkit (~> 1.2)
capistrano-service (0.0.2)
capistrano (>= 3.0.0.pre)
capistrano-sidekiq (1.0.2)
capistrano (>= 3.9.0)
sidekiq (>= 3.4)
Expand Down Expand Up @@ -1128,6 +1130,7 @@ DEPENDENCIES
capistrano-passenger (= 0.2.0)
capistrano-rails (= 1.4.0)
capistrano-rvm (= 0.1.2)
capistrano-service
capistrano-sidekiq (= 1.0.2)
capybara (~> 2.3.0)
coffee-rails (~> 4.2.2)
Expand Down
9 changes: 5 additions & 4 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,6 @@
set :application, 'ProtectedPlanet'
set :repo_url, '[email protected]:unepwcmc/ProtectedPlanet.git'

set :init_system, :systemd
set :service_unit_name, "sidekiq_pp.service"
set :service_unit_name, "sidekiq_import_pp.service"

set :deploy_user, 'wcmc'
set :deploy_to, "/home/#{fetch(:deploy_user)}/#{fetch(:application)}"

Expand All @@ -32,3 +28,8 @@
set :keep_releases, 5

set :passenger_restart_with_touch, false


namespace :deploy do
after :publishing, 'service:sidekiq_pp:restart'
end

0 comments on commit 5d6fd35

Please sign in to comment.