lib/capistrano/tasks/nginx.rake in capistrano3-nginx-2.1.4 vs lib/capistrano/tasks/nginx.rake in capistrano3-nginx-2.1.5
- old
+ new
@@ -78,17 +78,18 @@
end
end
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
on release_roles fetch(:nginx_roles) do
within release_path do
@@ -131,10 +132,10 @@
desc 'Disables the site removing the symbolic link located in the enabled folder'
task :disable => ['nginx:load_vars', 'nginx:validate_user_settings'] do
on release_roles fetch(:nginx_roles) do
if test "[ -f #{fetch(:enabled_application)} ]"
within fetch(:sites_enabled) do
- arguments = :rm, '-f', fetch(:application)
+ arguments = :rm, '-f', fetch(:nginx_application_name)
add_sudo_if_required arguments, 'nginx:sites:disable', :nginx_sites_enabled_dir
execute *arguments
end
end
end