繁体   English   中英

Capistrano:如何删除符号链接“ current”,而是使用:{deploy_to}用于访问已部署的文件

[英]Capistrano: how to remove symlink 'current' and rather use: {deploy_to} for accessing the deployed files

嘿,我正在使用Capistrano部署我的PHP应用程序。
现在,我在这里注意到一件奇怪的事情(或者也许这是我不了解的事情)。
Capistrano将应用程序部署到releases文件夹,然后将current符号链接指向最新版本。
现在,当我访问这些文件时,我必须像这样访问它们: http://example.com/current/ : http://example.com/current/
有没有办法,我可以告诉capistrano(或使其生效),以便我可以使用: http://example.com/ : http://example.com/来访问这些已部署的文件?

问候
妮基·古普塔(Nikhil Gupta)。

current符号链接是为了使capistrano的内置功能能够回滚到以前的发行版-只是更改符号链接以指向releases的其他子目录。

您可以访问服务器的主机配置吗? 如果是这样,您可以将DocumentRoot更改为指向/path/to/your/app/current

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM