Skip to content

Commit

Permalink
pin health-monitor to 12.4
Browse files Browse the repository at this point in the history
  • Loading branch information
kayiwa committed Nov 13, 2024
1 parent 3ffa2f5 commit 680003a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ gem "grape", "~> 1.8"
gem "grape-entity", "~> 0.9"
gem "grape-swagger", "~> 1.4"
gem "grape-swagger-rails", "~> 0.4"
gem "health-monitor-rails", "~> 12.3"
gem "health-monitor-rails", "12.4.0"
gem "honeybadger", "~> 5.8"
gem "jbuilder", "~> 2.0"
gem "jquery-rails", "~> 4.5"
Expand Down
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ GEM
rspec (>= 2.99.0, < 4.0)
hashdiff (1.1.1)
hashie (5.0.0)
health-monitor-rails (12.3.0)
health-monitor-rails (12.4.0)
railties (>= 6.1)
highline (2.1.0)
honeybadger (5.8.0)
Expand Down Expand Up @@ -561,7 +561,7 @@ DEPENDENCIES
grape-swagger (~> 1.4)
grape-swagger-rails (~> 0.4)
guard-rspec
health-monitor-rails (~> 12.3)
health-monitor-rails (= 12.4.0)
honeybadger (~> 5.8)
jbuilder (~> 2.0)
jquery-rails (~> 4.5)
Expand Down
8 changes: 5 additions & 3 deletions config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,15 @@
end
end

# # You can/ should apply this command to a subset of hosts
# cap --hosts=oawaiver-staging2.lib.princeton.edu staging application:remove_from_nginx
desc "Marks the server(s) to be removed from the loadbalancer"
task :remove_from_nginx do
count = 0
on roles(:app) do
count += 1
end
if count > 1
if count > (roles(:app).length / 2)
raise "You must run this command on individual servers utilizing the --hosts= switch"
end
on roles(:app) do
Expand All @@ -64,8 +66,8 @@
end
end

# You can/ should apply this command to a single host
# cap --hosts=pdc-describe-staging1.princeton.edu staging application:serve_from_nginx
# You can/ should apply this command to a subset of hosts
# cap --hosts=oawaiver-staging2.lib.princeton.edu staging application:serve_from_nginx
desc "Marks the server(s) to be removed from the loadbalancer"
task :serve_from_nginx do
on roles(:app) do
Expand Down

0 comments on commit 680003a

Please sign in to comment.