Skip to content

Commit

Permalink
Merge pull request #29 from paratiger/capistrano3.5
Browse files Browse the repository at this point in the history
Update `after` call to work with capistrano3.5
  • Loading branch information
blackjid authored Jun 17, 2016
2 parents c249985 + 6283ac0 commit d1d3983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/capistrano/tasks/nginx.rake
Original file line number Diff line number Diff line change
Expand Up @@ -80,13 +80,14 @@ namespace :nginx do
before "nginx:#{command}", 'nginx:configtest' unless command == 'stop'
end

after 'deploy:check', nil do
task :create_log_paths do
on release_roles fetch(:nginx_roles) do
arguments = :mkdir, '-pv', fetch(:nginx_log_path)
add_sudo_if_required arguments, :nginx_log_path
execute *arguments
end
end
after 'deploy:check', 'nginx:create_log_paths'

desc 'Compress JS and CSS with gzip'
task :gzip_static => ['nginx:load_vars'] do
Expand Down

0 comments on commit d1d3983

Please sign in to comment.