0
@@ -19,9 +19,25 @@ set :ssh_options, { :forward_agent => true }
0
set :conf_dir, "/srv/conf/apps/#{application}"
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
+# overload run-state tasks for god
0
+ desc "Start the application using God"
0
+ sudo %{god start rails-#{application}-app}
0
+ desc "Stop the application using God"
0
+ sudo %{god stop rails-#{application}-app}
0
+ desc "Restart the application using God"
0
+ sudo %{god restart rails-#{application}-app}
0
namespace :peervoice do
0
@@ -33,6 +49,7 @@ namespace :peervoice do
0
run %{cd #{release_path} && rake peervoice:configure:target}
0
+ desc "symlink production sqlite database into the appropriate place"
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.