我正在尝试使用SVN和Vlad部署应用程序。 Vlad及其依赖项已经安装好了。
我正在尝试以下方法:
rake prod vlad:update
成为我的config / deploy.rb文件:
task :prod do
set :application, "xxx"
set :deploy_timestamped, "false"
set :user, "username"
set :scm_user, "scmusername"
set :repository, "http://domain.com/svn/app"
set :domain, "domain.com"
set :deploy_to, "/home/username/deployments/app"
puts "Production deployment to #{deploy_to}"
end
我已经完成了“rake prod vlad:setup”,这很好。 但是当打电话给“rake prod vlad:update”时,我得到以下内容
A ...file
Exported revision 14.
ln: creating symbolic link `/home/username/deployments/drupalgestalt/releases/20100503164225/public/system' to `/home/username/deployments/drupalgestalt/shared/system': No such file or directory
rake aborted!
execution failed with status 1: ssh domain.com ln -s
/home/username/deployments/app/shared/log
/home/username/deployments/app/releases/20100503164225/log && ln -s
/home/username/deployments/app/shared/system
/home/username/deployments/app/releases/20100503164225/public/system && ln -s
/home/username/deployments/app/shared/pids
/home/username/deployments/app/releases/20100503164225/tmp/pids
显然在创建ln时会抱怨,但权限都设置得很好。
我做错了吗?我只是假设弗拉德非常容易设置而开始。过去曾经玩过帽子,我确实喜欢弗拉德的想法。
答案 0 :(得分:0)
它看起来像路径错误。尝试将:deploy_to行更改为正确的路径。我很确定“/ home / username /”不是它。
答案 1 :(得分:0)
更具体地......看起来你错过了它试图符号链接到的“共享”目录。您是否设置了以下目录?
/home/username/deployments/drupalgestalt/shared/system
是的,“用户名”也是一个问题。您需要更新以下行:
set :deploy_to, "/home/username/deployments/app"
到
set :deploy_to, "/home/#{username}/deployments/#{application}"