<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -35,23 +35,6 @@ role :scm, domain
 set :app_server, :passenger  # :mongrel or :passenger
 
 # =============================================================================
-# WEB SERVER OPTIONS
-# =============================================================================
-# set :httpd, &quot;apache&quot;   # apache 
-# set :apache_server_name, domain
-# set :apache_server_aliases, %w{alias1 alias2}
-# set :apache_default_vhost, true # force use of  apache_default_vhost_config
-# set :apache_default_vhost_conf, &quot;/etc/httpd/conf/default.conf&quot;
-# set :apache_conf, &quot;/etc/httpd/conf/apps/#{application}.conf&quot;
-# set :apache_proxy_port, 8000
-# set :apache_proxy_servers, 2
-# set :apache_proxy_address, &quot;127.0.0.1&quot;
-# set :apache_ssl_enabled, false
-# set :apache_ssl_ip, &quot;127.0.0.1&quot;
-# set :apache_ssl_forward_all, false
-# set :apache_ctl, &quot;/etc/init.d/httpd&quot;
-
-# =============================================================================
 # DATABASE OPTIONS
 # =============================================================================
 set :database, &quot;mysql&quot;   # mysql or postgresql
@@ -67,3 +50,13 @@ set :repository, &quot;git@github.com:travisr/#{application}.git&quot;
 # =============================================================================
 set :keep_releases, 5
 set :deploy_via, :remote_cache
+
+# action to symlink database file
+namespace :deploy do
+  desc &quot;Symlink database config file.&quot;
+  task :symlink_db do
+    run &quot;ln -nfs #{shared_path}/system/database.yml #{release_path}/config/database.yml&quot;
+  end
+end
+ 
+after 'deploy:update_code', 'deploy:symlink_db'</diff>
      <filename>config/deploy.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>ef65878e1e8f775d6db71893f7c40f144eca7623</id>
    </parent>
  </parents>
  <author>
    <name>Travis Roberts</name>
    <email>traviskroberts@gmail.com</email>
  </author>
  <url>http://github.com/travisr/tor_blog/commit/3620357e05fdd57bcd6cfcecc9860ff3466b1d91</url>
  <id>3620357e05fdd57bcd6cfcecc9860ff3466b1d91</id>
  <committed-date>2009-06-11T15:49:27-07:00</committed-date>
  <authored-date>2009-06-11T15:49:27-07:00</authored-date>
  <message>added symlink task to deploy for database</message>
  <tree>7b5c5c68c172feef6956f96c5c66478b2f98644a</tree>
  <committer>
    <name>Travis Roberts</name>
    <email>traviskroberts@gmail.com</email>
  </committer>
</commit>
