Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
symlinks in push folder #108
Thanks for raising this issue! It looks like you're correct; symlinks don't get included and this is intentional. The path where the file is located differs during staging and when the app is running, so only the most carefully crafted symlinks would actually work (they would be unable to descend outside the container). I think at some point a decision was made not to let people shoot themselves in the foot.
I just tested hardlinks (ie. links created with
I hope that helps! Is it OK to close this issue?
CF Community Team (@thecadams)
I just came across this today. My symlink was
A hard link did the trick for me, but this is definitely going on my
I also ran across this problem today. My use case is that I need a symlink from a directory in my web root to a specific directory in a vendor package. I cannot simply copy the directory into the web root, because that would mess up relative references in files in that directory. Instead, I was planning to use a symlink, like so:
Note that the symlink is relative, so its location in the file system does not matter.