Created
December 21, 2008 17:31
-
-
Save tobias/38722 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#-*-ruby-*- | |
load 'deploy' if respond_to?(:namespace) # cap2 differentiator | |
default_run_options[:pty] = true | |
# be sure to change these | |
set :user, 'app_user' | |
set :domain, 'urlunwind.com' | |
set :application, 'url_unwind' | |
set :git_path_prefix, "git@github.com/tobias/" | |
# the rest should be good | |
set :repository, "#{git_path_prefix}#{application}.git" | |
set :deploy_to, "/home/#{user}/#{domain}" | |
set :deploy_via, :remote_cache | |
set :scm, 'git' | |
set :branch, 'master' | |
#set :git_shallow_clone, 1 | |
set :scm_verbose, true | |
set :use_sudo, false | |
server domain, :app, :web | |
namespace :deploy do | |
task :restart do | |
run "test -d #{current_path}/tmp || mkdir #{current_path}/tmp" | |
run "test -d #{current_path}/log || mkdir #{current_path}/log" | |
run "touch #{current_path}/tmp/restart.txt" | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment