Alright, just been through the source code, and it appears that :after :'deploy:starting'` is too late since during `deploy:starting`, linked_files and linked_dirs are already checked. So, I'm now using the after :'deploy:check:directories'` hook, which was not clearly documented here: http://capistranorb.com/documentation/getting-started/flow/
Great success. On Thursday, 9 July 2015 22:34:56 UTC+2, Chiel Kunkels wrote: > > Hi all, > > I am using the `set :linked_files` to set a file I want symlinked into > every release, however the file that needs to be linked is uploaded in the > course of the deployment. > > However, when doing a cold deploy, it appears that the `linked_files` are > being symlinked before the files are being uploaded. > > So, I am wondering what the best time is to be uploading these files to > the server? At the moment I am using the `after :'deploy:starting'` hook, > but that doesn't seem to be early enough, however it feels to me like I > can't do it before then either because the directory structure will not > have been created. > > Any suggestions are very welcome! > > Cheers, > Chiel. > -- You received this message because you are subscribed to the Google Groups "Capistrano" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web, visit https://groups.google.com/d/msgid/capistrano/db41e240-2738-4f64-a3b7-93ed7a939110%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
