Skip to content

Commit

Permalink
Gem updates
Browse files Browse the repository at this point in the history
Fixes #836
Fixes #837
  • Loading branch information
andrew committed Oct 19, 2016
1 parent 8c28d7c commit d775b27
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ GEM
capistrano (>= 3.0.0)
concurrent-ruby (1.0.2)
connection_pool (2.2.0)
counter_culture (0.2.2)
counter_culture (0.2.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)
after_commit_action (~> 1.0.0)
Expand Down Expand Up @@ -213,7 +213,7 @@ GEM
net-ssh (>= 2.6.5)
net-ssh (3.2.0)
netrc (0.11.0)
newrelic_rpm (3.16.3.323)
newrelic_rpm (3.17.0.325)
nokogiri (1.6.8.1)
mini_portile2 (~> 2.1.0)
oauth2 (1.2.0)
Expand Down Expand Up @@ -347,10 +347,10 @@ GEM
addressable (>= 2.3.5, < 2.5)
faraday (~> 0.8, < 0.10)
semantic_range (1.0.0)
sidekiq (4.2.2)
sidekiq (4.2.3)
concurrent-ruby (~> 1.0)
connection_pool (~> 2.2, >= 2.2.0)
rack-protection (~> 1.5)
rack-protection (>= 1.5.0)
redis (~> 3.2, >= 3.2.1)
sidekiq-unique-jobs (4.0.18)
sidekiq (>= 2.6)
Expand Down
12 changes: 7 additions & 5 deletions config/deploy/production.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
server ENV['WEB_SERVER'], user: ENV['WEB_USER'], roles: %w{app web}
# server ENV['WEB_SERVER'], user: ENV['WEB_USER'], roles: %w{app web}
# server '163.172.185.77', user: ENV['WEB_USER'], roles: %w{app web}
# server '163.172.149.206', user: ENV['WEB_USER'], roles: %w{app web}
server ENV['SIDEKIQ_SERVER'], user: ENV['SIDEKIQ_USER'], roles: %w{app worker}
server ENV['SIDEKIQ_SERVER2'], user: ENV['SIDEKIQ_USER'], roles: %w{app worker}
server ENV['SIDEKIQ_SERVER3'], user: ENV['SIDEKIQ_USER'], roles: %w{app worker}

namespace :deploy do
task :restart do
on roles(:worker) do |host|
on roles(:app) do |host|
execute "restart librariesio"
end
on roles(:web) do |host|
execute "cd #{current_path} && bundle exec pumactl -P #{fetch(:puma_state)} -F #{fetch(:puma_conf)} restart"
end
# on roles(:web) do |host|
# execute "cd #{current_path} && bundle exec pumactl -P #{fetch(:puma_state)} restart"
# end
end
after :publishing, :restart
end

0 comments on commit d775b27

Please sign in to comment.