Revision: 7205
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at July 14, 2008 08:26 by bcalloway
Initial Code
set :application, "svnrepo" #use the name of the repo
set :domain, "my.domain.com" #domain where project resides
set :user, "sshusername" #your ssh username
set :runner, user
set :svn_user, "svnusername" #your svn username
set :repository, Proc.new { "--username #{svn_user} " + "http://my.domain.com/svn/SVN-REPO-NAME/trunk" }
set :deploy_to, "/path/to/site"
set :keep_releases, 1
set :deploy_via, :remote_cache
role :app, domain
role :web, domain
role :db, domain, :primary => true
namespace :deploy do
[:start, :stop, :restart, :finalize_update, :migrate, :migrations, :cold].each do |t|
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :app do ; end
end
end
#this is for Rails
#namespace :deploy do
# [:start, :stop].each do |t|
# desc "#{t} task is a no-op with mod_rails"
# task t, :roles => :app do ; end
# end
#end
#this is for Joomla sites
#after "deploy:update_code" do
# run "ln -s #{shared_path}/configuration.php #{release_path}/"
#end
Initial URL
Initial Description
simply capistrano deploy recipe, including a sample shared link setup for Joomla configuration.php
Initial Title
Capistrano deploy.rb
Initial Tags
Initial Language
Ruby