Skip to content

Commit

Permalink
Capfile to deploy to http://timelines.hhba.info/
Browse files Browse the repository at this point in the history
  • Loading branch information
runix committed Apr 14, 2012
1 parent e28a243 commit 540bcff
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Capfile
@@ -0,0 +1,32 @@
load 'deploy' if respond_to?(:namespace) # cap2 differentiator

default_run_options[:pty] = true

# be sure to change these
set :github_user, 'hhba'
set :github_application, "timelines"
set :user, 'timelines'
set :domain, 'timelines.hhba.info'
set :application, 'timelines'

# the rest should be good
set :repository, "git@github.com:#{github_user}/#{github_application}.git"
set :deploy_to, "/home/#{user}/#{application}" # or whatever path you want to copy it to
set :deploy_via, :remote_cache
set :scm, 'git'
set :branch, 'master'
set :git_shallow_clone, 1
set :scm_verbose, true
set :use_sudo, false
set :ssh_options, { :forward_agent => true }


server domain, :app, :web

# xbit is a script that runs chmod +x on all html files
# because the site uses server side includes
namespace :deploy do
task :xbit do
run "cd /var/apps/#{application}/current; ../xbit"
end
end

0 comments on commit 540bcff

Please sign in to comment.