lib/negroku/tasks/nginx.rb in negroku-0.0.3 vs lib/negroku/tasks/nginx.rb in negroku-0.0.4
- old
+ new
@@ -38,10 +38,10 @@
after "deploy:setup", "nginx:setup"
desc "Setup nginx configuration for this application."
task :setup, roles: :web do
template "nginx.erb", "/tmp/nginx.conf"
- run "#{sudo} mv /tmp/nginx.conf /opt/nginx/sites-enabled/#{fetch(:application)}"
+ run "#{sudo} mv /tmp/nginx.conf /etc/nginx/sites-enabled/#{fetch(:application)}"
run "mkdir -p /home/#{fetch(:user)}/log"
reload
end
%w[start stop restart reload].each do |command|
\ No newline at end of file