lib/capistrano/tasks/nginx.rake in capistrano3-nginx-3.0.3 vs lib/capistrano/tasks/nginx.rake in capistrano3-nginx-3.0.4
- old
+ new
@@ -51,10 +51,10 @@
arguments = :mkdir, '-pv', fetch(:nginx_log_path)
git_plugin.add_sudo_if_required arguments, :nginx_log_path
execute *arguments, interaction_handler: PasswdInteractionHandler.new
end
end
- after 'deploy:check', 'nginx:create_log_paths'
+ after 'deploy:check', 'nginx:create_log_paths' if fetch(:nginx_log_path)
desc 'Compress JS and CSS with gzip'
task :gzip_static => ['nginx:load_vars'] do
on release_roles fetch(:nginx_roles) do
within release_path do