Permalink
Browse files

new deploy files... DO NOT USE YET

  • Loading branch information...
1 parent 8d7ff63 commit c845d9c74600e0c25982f1e82d5498fe15da062c @hcatlin committed Aug 24, 2009
Showing with 27 additions and 0 deletions.
  1. +3 −0 Capfile
  2. +24 −0 config/deploy.rb
View
@@ -0,0 +1,3 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+load 'config/deploy'
View
@@ -0,0 +1,24 @@
+set :application, "wikimedia-mobile"
+set :repository, "git://github.com/hcatlin/wikimedia-mobile.git"
+
+set :scm, :git
+set :user, "root"
+set :deploy_to, "/srv/#{application}"
+
+role :web, "mobile1.wikimedia.org"
+role :cache, "mobile1.wikimedia.org"
+
+namespace :deploy do
+ task :restart do
+ deploy.stop
+ deploy.start
+ end
+
+ task :start do
+ run "/etc/init.d/thin start"
+ end
+
+ task :stop do
+ run "pkill -9 thin"
+ end
+end

0 comments on commit c845d9c

Please sign in to comment.