lib/deprec/third_party/railsmachine/recipes/apache.rb in deprec-1.3.1 vs lib/deprec/third_party/railsmachine/recipes/apache.rb in deprec-1.4.1
- old
+ new
@@ -50,9 +50,11 @@
end
put buffer, "#{shared_path}/httpd.conf", :mode => 0444
send(run_method, "cp #{shared_path}/httpd.conf #{apache_conf}")
delete "#{shared_path}/httpd.conf"
+
+ deprec.append_to_file_if_missing('/usr/local/apache2/conf/httpd.conf', 'NameVirtualHost *:80')
end
desc "Start Apache "
task :start_apache, :roles => :web do
send(run_method, "#{apache_ctl} start")
\ No newline at end of file