Skip to content

Commit

Permalink
Parameterise username in 'rack.logrotate', passing it in from 'rack a…
Browse files Browse the repository at this point in the history
…pp'.
  • Loading branch information
benhoskings committed Feb 7, 2012
1 parent 5a0166b commit e14b826
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions logrotate.rb
Expand Up @@ -25,7 +25,7 @@ def conf_dest
as "nginx" as "nginx"
end end


dep 'rack.logrotate' do dep 'rack.logrotate', :username do
renders "logrotate/rack.conf" renders "logrotate/rack.conf"
as var(:username) as username
end end
2 changes: 1 addition & 1 deletion logrotate/rack.conf
@@ -1,4 +1,4 @@
/srv/http/<%= var :username %>/current/log/*.log { /srv/http/<%= username %>/current/log/*.log {
daily daily
missingok missingok
rotate 7 rotate 7
Expand Down
2 changes: 1 addition & 1 deletion top level.rb
Expand Up @@ -29,7 +29,7 @@
requires 'webapp'.with('unicorn', domain, domain_aliases, username, path, listen_host, listen_port, nginx_prefix, enable_ssl, force_ssl) requires 'webapp'.with('unicorn', domain, domain_aliases, username, path, listen_host, listen_port, nginx_prefix, enable_ssl, force_ssl)
requires 'web repo'.with(path) requires 'web repo'.with(path)
requires 'app bundled'.with(path, env) requires 'app bundled'.with(path, env)
requires 'rack.logrotate' requires 'rack.logrotate'.with(username)
end end


dep 'proxied app' do dep 'proxied app' do
Expand Down

0 comments on commit e14b826

Please sign in to comment.