我正在使用 Capifony 2.2.7 将 Symfony 2 项目部署到 Amazon EC2。尝试为,和目录创建符号链接的shared_children
选项,但挂在目录上(在成功创建和 的链接之后)。的详细输出如下所示:deploy.rb
logs
uploads
vendor
uploads
logs
vendor
cap:deploy
* executing "sudo -p 'sudo password: ' sh -c 'if [ -d /home/ubuntu/tempdeploy/releases/20130224230816/web/uploads ] ; then rm -rf /home/ubuntu/tempdeploy/releases/20130224230816/web/uploads; fi'"
servers: ["10.12.345.67"]
[10.12.345.67] executing command
* executing "sudo -p 'sudo password: ' ln -nfs /home/ubuntu/tempdeploy/shared/web/uploads /home/ubuntu/tempdeploy/releases/20130224230816/web/uploads"
** [out :: 10.12.345.67] ln:
** [out :: 10.12.345.67] failed to create symbolic link `/home/ubuntu/tempdeploy/releases/20130224230816/web/uploads'
** [out :: 10.12.345.67] : No such file or directory
我试过删除.rsync_cache
、部署 via:copy
等。该web/uploads
目录存在于 git repo 中。这是完整的 deploy.rb 文件。
我可以提供任何想法或更多信息吗?