<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,19 +35,25 @@ set :scanty_admin_password, 'CHANGE-ME'
 set :admin_cookie_key, 'scanty_admin'
 set :admin_cookie_value, '51d6d976913ace58'
 
-# where capinatra apache vhost task will generate your vhost
-set :apache_vhost_dir, &quot;/etc/apache2/sites-available/&quot;
-
-before &quot;deploy:setup&quot;, &quot;mysql:setup&quot;, &quot;deploy:vhost&quot;
-after &quot;deploy:setup&quot;, &quot;db:configs&quot;
+before &quot;deploy:setup&quot;, &quot;mysql:setup&quot;
+after &quot;deploy:setup&quot;, &quot;deploy:configs&quot;, &quot;deploy:vhost&quot;, &quot;db:config&quot;
 after &quot;deploy:update_code&quot;, &quot;db:symlink&quot;, &quot;deploy:set_group&quot;
 
+set :apache_dir, &quot;/etc/apache2&quot;
+
 namespace :deploy do
+  desc &quot;creates the shared config directory&quot;
+  task :configs do
+    run &quot;mkdir #{shared_path}/config/&quot;
+  end
+
   desc &quot;copies your passenger sinatra virtual host&quot;
   task :vhost do
     template = File.read(File.join(File.dirname(__FILE__), 'config', 'vhost.conf.erb'))
-    put ERB.new(template).result(binding), &quot;#{apache_vhost_dir}/#{application}.conf&quot;
-    run &quot;ln -nfs #{apache_vhost_dir}/#{application}.conf #{apache_vhost_dir}/../sites-enabled/#{application}&quot;
+    put ERB.new(template).result(binding), &quot;#{shared_path}/config/#{application}.conf&quot;
+
+    sudo &quot;mv #{shared_path}/config/#{application}.conf #{apache_dir}/sites-available/#{application}.conf&quot;
+    sudo &quot;ln -nfs #{apache_dir}/sites-available/#{application}.conf #{apache_dir}/sites-enabled/#{application}.conf&quot;
   end
 
   desc &quot;restart your passenger scanty&quot;
@@ -64,8 +70,7 @@ end
 require 'erb'
 namespace :db do
   desc &quot;Copies the config yaml&quot;
-  task :configs do
-    run &quot;mkdir #{shared_path}/config/&quot;
+  task :config do
     template = File.read(File.join(File.dirname(__FILE__), 'config', 'config.yml.erb'))
     put ERB.new(template).result(binding), &quot;#{shared_path}/config/config.yml&quot;
   end</diff>
      <filename>Capfile</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>fefe48ee648abb0c49b0955fdc9931ceb6cafd45</id>
    </parent>
  </parents>
  <author>
    <name>Joaquin Rivera Padron</name>
    <email>joahking@gmail.com</email>
  </author>
  <url>http://github.com/joahking/scanty/commit/8daeaa3072f4e894d3f9ee009b1fad63a2f17c9f</url>
  <id>8daeaa3072f4e894d3f9ee009b1fad63a2f17c9f</id>
  <committed-date>2009-03-20T05:06:22-07:00</committed-date>
  <authored-date>2009-03-20T05:06:02-07:00</authored-date>
  <message>fixed minor issues in Capfile</message>
  <tree>e4e5784c33bdc95fd0f1d0106fcbed3ca77932c6</tree>
  <committer>
    <name>Joaquin Rivera Padron</name>
    <email>joahking@gmail.com</email>
  </committer>
</commit>
