[英]Capistrano: how to remove symlink 'current' and rather use: {deploy_to} for accessing the deployed files
Hey, I am using Capistrano to deploy my PHP applications. 嘿,我正在使用Capistrano部署我的PHP应用程序。
Now, I notice a strange thing here (or maybe this is something I do not understand). 现在,我在这里注意到一件奇怪的事情(或者也许这是我不了解的事情)。
Capistrano deploys application to releases
folder and then, symlinks current
to point to latest release. Capistrano将应用程序部署到
releases
文件夹,然后将current
符号链接指向最新版本。
Now, when I access these files, I have to access them like this: http://example.com/current/
现在,当我访问这些文件时,我必须像这样访问它们:
http://example.com/current/
: http://example.com/current/
Is there a way, I can tell capistrano (or make it work) so that I can rather use: http://example.com/
to access these deployed files? 有没有办法,我可以告诉capistrano(或使其生效),以便我可以使用:
http://example.com/
: http://example.com/
来访问这些已部署的文件?
Regards 问候
Nikhil Gupta. 妮基·古普塔(Nikhil Gupta)。
The current
symlink is to enable capistrano's built-in functionality for rolling back to previous releases - it just changes the symlink to point to a different subdirectory of releases
. current
符号链接是为了使capistrano的内置功能能够回滚到以前的发行版-只是更改符号链接以指向releases
的其他子目录。
Do you have access to the server's host-configuration? 您可以访问服务器的主机配置吗? If so, you could change the
DocumentRoot
to point to /path/to/your/app/current
instead. 如果是这样,您可以将
DocumentRoot
更改为指向/path/to/your/app/current
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.