Skip to content

Commit

Permalink
new deploy files... DO NOT USE YET
Browse files Browse the repository at this point in the history
  • Loading branch information
HamptonMakes committed Aug 24, 2009
1 parent 8d7ff63 commit c845d9c
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Capfile
@@ -0,0 +1,3 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator
Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
load 'config/deploy'
24 changes: 24 additions & 0 deletions config/deploy.rb
@@ -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.