public this repo is viewable by everyone
Description: Vault
Homepage: http://peervoice.com/software/vault
Clone URL: git://github.com/ddollar/vault.git
updated deployment script to use god
ddollar (author)
28 days ago
commit  017897b4919a1bae3cf271814ee031be1670940d
tree    9225e779620d97c26ae4006731a2760db324d2e1
parent  abc2f77bd7116f018121044330ef61b684ca5bd0
...
19
20
21
22
 
23
24
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
26
27
...
33
34
35
 
36
37
38
...
19
20
21
 
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
...
49
50
51
52
53
54
55
0
@@ -19,9 +19,25 @@ set :ssh_options, { :forward_agent => true }
0
 set :conf_dir, "/srv/conf/apps/#{application}"
0
 
0
 # mongrel_cluster integration
0
-require 'mongrel_cluster/recipes'
0
+#require 'mongrel_cluster/recipes'
0
 set :mongrel_conf, "#{current_path}/config/mongrel_cluster.yml"
0
 
0
+# overload run-state tasks for god
0
+namespace :deploy do
0
+ desc "Start the application using God"
0
+ task :start do
0
+ sudo %{god start rails-#{application}-app}
0
+ end
0
+ desc "Stop the application using God"
0
+ task :stop do
0
+ sudo %{god stop rails-#{application}-app}
0
+ end
0
+ desc "Restart the application using God"
0
+ task :restart do
0
+ sudo %{god restart rails-#{application}-app}
0
+ end
0
+end
0
+
0
 # custom deploy tasks
0
 namespace :peervoice do
0
 
0
@@ -33,6 +49,7 @@ namespace :peervoice do
0
       run %{cd #{release_path} && rake peervoice:configure:target}
0
     end
0
     
0
+ desc "symlink production sqlite database into the appropriate place"
0
     task :sqlite do
0
       run %{mkdir -p #{shared_path}/db}
0
       run %{ln -nfs #{shared_path}/db/production.sqlite3 #{release_path}/db/production.sqlite3}

Comments

    No one has commented yet.