lib/capistrano/tasks/nginx-unit.rake in capistrano-nginx-unit-0.4.3 vs lib/capistrano/tasks/nginx-unit.rake in capistrano-nginx-unit-0.4.4
- old
+ new
@@ -69,10 +69,10 @@
app_json = JSON.generate({
type: "ruby",
processes: fetch(:nginx_unit_processes),
user: fetch(:nginx_unit_user) || host.user,
group: fetch(:nginx_unit_group) || host.user,
- working_directory: fetch(:nginx_unit_working_dir),
+ working_directory: fetch(:nginx_unit_working_dir) || released_dir,
script: File.join(released_dir, fetch(:nginx_unit_script))
}.compact)
control_nginx_unit(:put, path: "/applications/#{fetch(:nginx_unit_app_name)}", json: app_json)
end