You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've searched around a bit and I'm fairly convinced this is a bug, not a PEBKAC (although apologies if it is!)
I have a linked dir setup like this:
set :linked_dirs, ['config/credentials']
Capistrano correctly creates the directory at /home/user/application/shared/config/credentials/, and symlinks it appropriately in /home/user/application/current/config/credentials/.
However, when the contents of that folder are initially uploaded, they're uploaded to /home/user/application/shared/credentials/*. That means the actual symlinked folder is empty, as the files are in the wrong place.
I've hunted around a bit for a solution but haven't encountered anything yet. Any ideas what might be going wrong?
The text was updated successfully, but these errors were encountered:
SSHKit upload! method automatically creates the last level of the path of the arg1 at the arg2 location. It only creates the last level of the path at the arg2 location tho. For this to work, the last path level needs to be stripped from arg2.
I suggest adding something like (line 35) of lib/capistrano/tasks/linked_files.rake: path = Pathname.new("#{shared_path}/#{dir}/").split.first.to_s upload! dir, path, recursive: true
don't forget to require 'pathname' before the code
I've searched around a bit and I'm fairly convinced this is a bug, not a PEBKAC (although apologies if it is!)
I have a linked dir setup like this:
Capistrano correctly creates the directory at
/home/user/application/shared/config/credentials/
, and symlinks it appropriately in/home/user/application/current/config/credentials/
.However, when the contents of that folder are initially uploaded, they're uploaded to
/home/user/application/shared/credentials/*
. That means the actual symlinked folder is empty, as the files are in the wrong place.I've hunted around a bit for a solution but haven't encountered anything yet. Any ideas what might be going wrong?
The text was updated successfully, but these errors were encountered: