Skip to content

Commit

Permalink
Merge pull request #85 from fughz/configurable_nginx_service_path
Browse files Browse the repository at this point in the history
modified 'nginx_service_path' to configurable
  • Loading branch information
rhomeister authored Jul 15, 2016
2 parents f4cf8ed + 47b8e7f commit a7f2824
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/capistrano/dsl/nginx_paths.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def nginx_sites_enabled_file
end

def nginx_service_path
'/etc/init.d/nginx'
"#{fetch(:nginx_service_path)}"
end

def nginx_default_pid_file
Expand Down
1 change: 1 addition & 0 deletions lib/capistrano/tasks/nginx.rake
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ namespace :load do
set :templates_path, 'config/deploy/templates'
set :nginx_config_name, -> { "#{fetch(:application)}_#{fetch(:stage)}" }
set :nginx_pid, nginx_default_pid_file
set :nginx_service_path, '/etc/init.d/nginx'
# set :nginx_server_name # default set in the `nginx:defaults` task
# ssl options
set :nginx_location, '/etc/nginx'
Expand Down

0 comments on commit a7f2824

Please sign in to comment.