webistrano
Posted May 1st, 2008 by adminDo you like the capistrno, ok , you can check out webistrano .
and , update the this blog (mephisto ) from 0.7.3 to 0.8
Tags: capistrano, ruby on rails
I’d love to change the world,but they won’t give me the source code.
Caker, Web developer,Beijing,China.
My projects
Do you like the capistrno, ok , you can check out webistrano .
and , update the this blog (mephisto ) from 0.7.3 to 0.8
Tags: capistrano, ruby on rails
I just try to make a script for the capistrano to autodeploy the rails project, but first I ran the “cap deploy:setup” under work directory, then got errors below :
* executing `deploy:setup’
* executing “umask 02 && mkdir -p /var/www/caker.cn /var/www/caker.cn/releases /var/www/caker.cn/shared /var/www/caker.cn/shared/system /var/www/caker.cn/shared/log /var/www/caker.cn/shared/pids”
servers: [”192.168.0.3″]
[...]
Tags: capistrano, fix
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: capistrano