public this repo is viewable by everyone
Description: Vault
Homepage: http://peervoice.com/software/vault
Clone URL: git://github.com/ddollar/vault.git
Merge commit 'generic/master'
ddollar (author)
28 days ago
commit  d231bbaca7b7df1a29c6b4994df09fede2d50df5
tree    f098344365d543a241eb6ccb3b5fae7cfac9f55f
parent  64a31c573a32f223775bc19b630ff469ca60e136 parent  017897b4919a1bae3cf271814ee031be1670940d
...
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.