简体   繁体   中英

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.
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 these 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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