lib/magic_recipes/nginx.rb in magic_recipes-0.0.12 vs lib/magic_recipes/nginx.rb in magic_recipes-0.0.13
- old
+ new
@@ -22,10 +22,10 @@
desc "Setup nginx configuration for this application"
task :setup, roles: :web do
template "nginx_#{rails_server}.erb", "/tmp/nginx_http_conf"
- run "#{sudo} rm #{http_enabled_path}/#{app_name}_*"
+ run "#{sudo} rm -f #{http_enabled_path}/#{app_name}_*"
run "#{sudo} mv /tmp/nginx_http_conf #{http_enabled_path}/#{app_name}_#{rails_server}.conf"
end
after "deploy:setup", "nginx:setup"