Created
November 15, 2008 05:28
-
-
Save edward/25197 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
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 |
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
# 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