Advertisement
Guest User

Untitled

a guest
Nov 24th, 2014
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.39 KB | None | 0 0
  1. file "/etc/apache2/sites-available/mysite.conf.d/local_fnt_config" do
  2.    owner 'root'
  3.    group 'root'
  4.    content "<Directory #{deploy[:deploy_to]}/current/web>\n\n" + IO.read("#{deploy[:deploy_to]}/current/web/.htaccess") + "\n\n</Directory>"
  5.    action :create
  6.    notifies :reload, "service[apache2]", :delayed
  7.    only_if { File.exist?("#{deploy[:deploy_to]}/current/web/mobile/.htaccess") }
  8. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement