Dreamhost 上的部署者 Vlad - 初始脚本
我正在尝试使用 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 时抱怨,但权限都设置得很好。
我做错了什么吗?我刚从 Vlad 开始,假设它非常容易设置。过去曾玩过一些帽子,我确实喜欢弗拉德的想法。
I'm trying to deploy an app with SVN and Vlad the deployer.
Vlad and its dependencies are installed and seem OK.
I'm trying the following:
rake prod vlad:update
Being my config/deploy.rb file:
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
I have done "rake prod vlad:setup" already, that's fine.
But when calling "rake prod vlad:update", I get the following
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
Apparently it complains when creating the ln, but permissions are all set up fine.
Am I doing anything wrong? I'm just starting with Vlad on the assumption it was super-easy to set up. Had played a bit with cap in the past, and I do like Vlad idea.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
看起来像是路径错误。尝试将 :deploy_to 行更改为正确的路径。我相当确定“/home/username/”不是它。
It looks like a path error. Try changing your :deploy_to line to the correct path. I'm fairly certain that "/home/username/" is not it.
更具体地说...看起来您缺少它试图符号链接到的“共享”目录。您是否设置了以下目录?
是的,“用户名”也是一个问题。您需要更新以下行
:
more specifically... it looks like you're missing the "shared" directory that its trying to symlink to. Do you have the following directory set up?
And yes, "username" is a problem too. You'll need to update the following line:
to