lib/capistrano/tasks/nginx-unit.rake in capistrano-nginx-unit-0.7.0 vs lib/capistrano/tasks/nginx-unit.rake in capistrano-nginx-unit-0.8.0
- old
+ new
@@ -101,11 +101,11 @@
def control_nginx_unit(method, path: "", json: nil)
args = [
"-s",
"-X #{method.to_s.upcase}",
"--unix-socket #{fetch(:nginx_unit_control_sock)}",
- "'http://localhost/#{path}'"
+ "'http://localhost/config#{path}'"
]
args << "-d '#{json}'" if json
res = JSON.parse(capture(:sudo, :curl, *args))
@@ -120,9 +120,9 @@
# Get current configuration
def nginx_unit_conf
JSON.parse(capture(
:sudo, :curl,
"--unix-socket #{fetch(:nginx_unit_control_sock)}",
- "http://localhost/"
+ "http://localhost/config"
))
end
end