开发者

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

开发者 https://www.devze.com 2023-02-15 13:50 出处:网络
Hey, I am using Capistrano to deploy my PHP applications. Now, I notice a strange thing here (or maybe this is something I do not understand).

Hey, I am using Capistrano to deploy my PHP applications.

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.

Now, when I access th开发者_StackOverflow社区ese files, I have to access them like this: 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?

Regards

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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消