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
  • Loading branch information
dwradcliffe committed Jul 14, 2014
1 parent fc0e323 commit f452264
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Berksfile.lock
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion cookbooks/rubygems-balancer/metadata.rb
@@ -1,6 +1,6 @@
name 'rubygems-balancer'

version '0.0.18'
version '0.0.19'

depends 'chef-vault'
depends 'nginx'
Expand Down
8 changes: 8 additions & 0 deletions cookbooks/rubygems-balancer/recipes/maintenance.rb
Expand Up @@ -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
Expand Up @@ -136,7 +136,7 @@ server {
}

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

Expand Down Expand Up @@ -304,7 +304,7 @@ server {
}

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

Expand Down

0 comments on commit f452264

Please sign in to comment.