Skip to content

Instantly share code, notes, and snippets.

@edward
Created November 15, 2008 05:28
Show Gist options
  • Save edward/25197 to your computer and use it in GitHub Desktop.
Save edward/25197 to your computer and use it in GitHub Desktop.
require "vlad"
set :application, "tanooki"
# set :domain, "wantstobesurpised.com"
set :domain, '67.207.131.232'
set :deploy_to, "/var/www/tanooki"
set :revision, 'origin/master'
set :user, 'edward'
set :repository, 'git://github.com/edward/tanooki.git'
set :scm, 'git'
namespace :vlad do
set :app_command, '/etc/init.d/apache2'
desc 'Restart Passenger'
remote_task :start_app, :roles => :app do
run "touch #{current_release}/tmp/restart.txt"
end
desc 'Restart Apache'
remote_task :start_web, :roles => :app do
run "sudo #{app_command} restart"
end
end
# Add your own tasks in files placed in lib/tasks ending in .rake,
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
require 'tasks/rails'
begin
require 'vlad'
Vlad.load :scm => "git"
rescue LoadError
# do nothing
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment