lib/fdlcap/recipes/nginx.rb in factorylabs-fdlcap-0.3.15 vs lib/fdlcap/recipes/nginx.rb in factorylabs-fdlcap-0.3.16

- old
+ new

@@ -29,14 +29,14 @@ namespace :nginx do %w( start stop restart reload ).each do |cmd| desc "#{cmd} your nginx servers" - task "#{cmd}".to_sym, :roles => :web do + task "#{cmd}".to_sym, :roles => :app do default_run_options[:pty] = true - sudo "/etc/init.d/nginx #{cmd}" + sudo "nohup /etc/init.d/nginx #{cmd} > /dev/null" end - end + end desc "Setup Nginx vhost config" task :vhost, :roles => :web do result = render_erb_template(File.join(File.dirname(__FILE__), '..','templates','nginx.vhost.conf.erb')) put result, "/tmp/nginx.vhost.conf" \ No newline at end of file