Skip to content

Instantly share code, notes, and snippets.

@gmanley
Created March 15, 2011 14:42
Show Gist options
  • Save gmanley/870793 to your computer and use it in GitHub Desktop.
Save gmanley/870793 to your computer and use it in GitHub Desktop.
load 'deploy' if respond_to?(:namespace)
default_run_options[:pty] = true
load 'config/deploy'
set :user, ""
set :domain, ""
set :app_class, 'App' # Leave this as is since this is the app class name
set :application, "app_name"
set :scm, :git
set :repository, "foo.com/git.git"
set :branch, 'master'
set :git_shallow_clone, 1
set :deploy_to, "/dir"
set :deploy_via, :remote_cache
set :use_sudo, false # ?
set :apache_vhost_dir, "/etc/apache2/sites-enabled/"
server domain, :app, :web
namespace :deploy do
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(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