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 toreleases
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.
精彩评论