public
Description: OneBody is web-based software that connects community members, especially churches, on the web.
Homepage: http://beonebody.com
Clone URL: git://github.com/seven1m/onebody.git
Change after_deploy task to follow after update_code instead.
Tim Morgan (author)
Sun Aug 17 20:04:59 -0700 2008
commit  fdea32d9a4414b465c24db4abbf674b9b9aba402
tree    71fcddb3a3eedce717f01a8178f86f9bfe57c074
parent  a8528c95224e2278ed40277f1de52c8e381130be
...
29
30
31
 
 
 
 
 
 
 
32
33
34
35
36
37
38
39
40
...
29
30
31
32
33
34
35
36
37
38
39
40
 
 
 
 
 
 
 
0
@@ -29,12 +29,12 @@ namespace :deploy do
0
     yml = render_erb_template(File.dirname(__FILE__) + '/templates/database.yml')
0
     put yml, "#{shared_path}/config/database.yml"
0
   end
0
+  
0
+  task :after_update_code do
0
+    rb = render_erb_template(File.dirname(__FILE__) + '/templates/links.rb')
0
+    put rb, "#{release_path}/config/initializers/links.rb"
0
+    run "cp -r #{release_path}/public/* #{shared_path}/public/"
0
+    run "ln -sf #{shared_path}/config/database.yml #{release_path}/config/database.yml"
0
+  end
0
 
0
 end
0
-
0
-task :after_deploy do
0
-  rb = render_erb_template(File.dirname(__FILE__) + '/templates/links.rb')
0
-  put rb, "#{release_path}/config/initializers/links.rb"
0
-  run "cp -r #{release_path}/public/* #{shared_path}/public/"
0
-  run "ln -sf #{shared_path}/config/database.yml #{release_path}/config/database.yml"
0
-end

Comments