Skip to content
This repository has been archived by the owner on Jul 11, 2020. It is now read-only.

Commit

Permalink
add directory for use in maintenance mode
Browse files Browse the repository at this point in the history
dwradcliffe committed Jul 14, 2014

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent fc0e323 commit f452264
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Original file line number Diff line number Diff line change
@@ -205,7 +205,7 @@ GRAPH
rubygems-backups (0.0.14)
chef-vault (>= 0.0.0)
rubygems-ruby (>= 0.0.0)
rubygems-balancer (0.0.18)
rubygems-balancer (0.0.19)
chef-vault (>= 0.0.0)
nginx (>= 0.0.0)
rubygems (>= 0.0.0)
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.18'
version '0.0.19'

depends 'chef-vault'
depends 'nginx'
8 changes: 8 additions & 0 deletions cookbooks/rubygems-balancer/recipes/maintenance.rb
Original file line number Diff line number Diff line change
@@ -9,3 +9,11 @@
group 'root'
mode '0644'
end

directory '/var/www/rubygems' do
owner 'root'
group 'root'
mode '0755'
action :create
recursive true
end
4 changes: 2 additions & 2 deletions cookbooks/rubygems-balancer/templates/default/site.conf.erb
Original file line number Diff line number Diff line change
@@ -136,7 +136,7 @@ server {
}

location / {
root /opt/nginx/html;
root /var/www/rubygems;
try_files /maintenance.html @app;
}

@@ -304,7 +304,7 @@ server {
}

location / {
root /opt/nginx/html;
root /var/www/rubygems;
try_files /maintenance.html @app;
}

0 comments on commit f452264

Please sign in to comment.