Caker, Web developer,Beijing,China.

My projects

capistrano deploy script

This is my capistrano script.

set :application, "caker.cn"
#svn info
set :svn_username, "caker"
set :svn_password, "pass"
set :repository, "http://svn.caker.cn/svn/caker.cn"

#sever info
role :app, "caker.cn"
role :web, "caker.cn"
role :db, "caker.cn", :primary => true
set :port, 1234
set :deploy_to, "/var/www/#{application}"
set :user,"caker"
set :password, "pass"
set :use_sudo, false
ssh_options[:keys] = %w(/home/caker/.ssh/id_rsa)
task :chmod,:roles => :web do
run "chmod -fR 755 #{deploy_to}/current/script/*"
end
after "deploy:symlink", :chmod

default_environment["PATH"] ="/usr/local/ruby/bin:/usr/local/ant/bin:/usr/java/jdk1.5.0_05/bin:
/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:
/usr/bin:/usr/X11R6/bin"

Tags:

Filed under:Uncategorized

Leave a Reply