Dreamhost 上的部署者 Vlad - 初始脚本

发布于 2024-08-31 07:29:25 字数 1357 浏览 9 评论 0原文

我正在尝试使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

梦毁影碎の 2024-09-07 07:29:25

看起来像是路径错误。尝试将 :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.

哽咽笑 2024-09-07 07:29:25

更具体地说...看起来您缺少它试图符号链接到的“共享”目录。您是否设置了以下目录?

/home/username/deployments/drupalgestalt/shared/system

是的,“用户名”也是一个问题。您需要更新以下行

set :deploy_to,  "/home/username/deployments/app"

set :deploy_to,  "/home/#{username}/deployments/#{application}"

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?

/home/username/deployments/drupalgestalt/shared/system

And yes, "username" is a problem too. You'll need to update the following line:

set :deploy_to,  "/home/username/deployments/app"

to

set :deploy_to,  "/home/#{username}/deployments/#{application}"
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文