Skip to content
Browse files

Added deploy script.

  • Loading branch information...
1 parent a6fcee8 commit faf420edeea3ebb7995c47bbf5f9534973983f87 @alloy committed Nov 9, 2009
Showing with 31 additions and 0 deletions.
  1. +4 −0 Capfile
  2. +27 −0 config/deploy.rb
View
4 Capfile
@@ -0,0 +1,4 @@
+load 'deploy' if respond_to?(:namespace) # cap2 differentiator
+Dir['vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) }
+
+load 'config/deploy' # remove this line to skip loading any of the default tasks
View
27 config/deploy.rb
@@ -0,0 +1,27 @@
+set :application, "papercups"
+set :domain, "#{application}.superalloy.nl"
+set :deploy_to, "/var/www/#{domain}"
+
+default_run_options[:pty] = true
+ssh_options[:forward_agent] = true
+
+set :repository, "git@github.com:alloy/paper-cups.git"
+set :scm, "git"
+set :branch, "master"
+set :repository_cache, "git_cache"
+set :deploy_via, :remote_cache
+set :git_enable_submodules, 1
+
+set :user, "deploy"
+
+role :web, domain
+role :app, domain
+role :db, domain
+
+namespace :deploy do
+ # task :start {}
+ # task :stop {}
+ task :restart, :roles => :app, :except => { :no_release => true } do
+ run "touch #{File.join(current_path,'tmp','restart.txt')}"
+ end
+end

0 comments on commit faf420e

Please sign in to comment.
Something went wrong with that request. Please try again.