<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -19,41 +19,22 @@ namespace :deploy do
       run &quot;mkdir -p #{shared_path}/themes&quot;
     end
     after 'deploy:setup', 'deploy:shared:setup'
-
-    desc 'Create MySQL database and grant user privileges'
-    task :mysql, :roles =&gt; :db do
-      run &quot;mysql -u root -e \&quot;create database onebody; grant all on onebody.* to onebody@localhost identified by '#{get_db_password}'\&quot;&quot;
-      yml = render_erb_template(File.dirname(__FILE__) + '/templates/database.yml')
-      put yml, &quot;#{shared_path}/config/database.yml&quot;
-    end
-    after 'deploy:shared:setup', 'deploy:shared:mysql'
-    
-    desc 'Point certain OneBody globals to the shared path'
-    task :point_db_dirs do
-      rb = render_erb_template(File.dirname(__FILE__) + '/templates/links.rb')
-      put rb, &quot;#{release_path}/config/initializers/links.rb&quot;
-    end
-    after 'deploy:update_code', 'deploy:shared:point_db_dirs'
     
-    desc 'Copy public files to the shared public path'
-    task :update_public_files do
-      run &quot;cp -r #{release_path}/public/* #{shared_path}/public/&quot;
-    end
-    after 'deploy:update_code', 'deploy:shared:update_public_files'
-
-    desc 'Symlink certain files to the shared path'
-    task :create_symlinks do
-      run &quot;ln -sf #{shared_path}/config/database.yml #{release_path}/config/database.yml&quot;
-    end
-    after 'deploy:shared:update_public_files', 'deploy:shared:create_symlinks'
-    
-    desc 'Install/update gem dependencies'
-    task :update_dependencies do
-      run &quot;cd #{release_path} &amp;&amp; sudo rake gems:install&quot;
-    end
-    after 'deploy:shared:create_symlinks', 'deploy:shared:update_dependencies'
-
+  end
+  
+  task :after_setup do
+    run &quot;cd #{release_path}&quot;
+    sudo &quot;rake gems:install&quot;
+    run &quot;mysql -u root -e \&quot;create database onebody; grant all on onebody.* to onebody@localhost identified by '#{get_db_password}'\&quot;&quot;
+    yml = render_erb_template(File.dirname(__FILE__) + '/templates/database.yml')
+    put yml, &quot;#{shared_path}/config/database.yml&quot;
   end
 
+end
 
+task :after_deploy do
+  rb = render_erb_template(File.dirname(__FILE__) + '/templates/links.rb')
+  put rb, &quot;#{release_path}/config/initializers/links.rb&quot;
+  run &quot;cp -r #{release_path}/public/* #{shared_path}/public/&quot;
+  run &quot;ln -sf #{shared_path}/config/database.yml #{release_path}/config/database.yml&quot;
 end</diff>
      <filename>lib/recipes/setup.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>e14a3a39fdaece81684f1df6ceab5ec67f3117c1</id>
    </parent>
  </parents>
  <author>
    <name>Tim Morgan</name>
    <email>tim@timmorgan.org</email>
  </author>
  <url>http://github.com/seven1m/onebody/commit/c4fb08d8cb3a4820dd57af438f906c061078817d</url>
  <id>c4fb08d8cb3a4820dd57af438f906c061078817d</id>
  <committed-date>2008-08-17T19:16:36-07:00</committed-date>
  <authored-date>2008-08-17T19:16:36-07:00</authored-date>
  <message>Clean up setup cap recipe.</message>
  <tree>cdaf23717810fa701d44b471f7c45999bfe378cb</tree>
  <committer>
    <name>Tim Morgan</name>
    <email>tim@timmorgan.org</email>
  </committer>
</commit>
