ruby on rails - Capistrano linked_dirs doubles end of path -
i upgraded rails 5 , capistrano 3.5.
now im facing issue, every folder in :linked_dirs gets double-symlinked:
in deploy.rb
set :linked_dirs, fetch(:linked_dirs, []).push('log', 'tmp/pids',      'tmp/cache', 'tmp/sockets', 'vendor/bundle', 'public/system', 'public/uploads')   this results in:
✔ 02 user@example.com 0.023s ✔ 04 user@example.com 0.023s   05 ln -s /var/www/app-dir/shared/tmp/cache /var/www/app-dir/releases/20161108113840/tmp/cache ✔ 05 user@example.com 0.025s   05 ln:   05 failed create symbolic link '/var/www/app-dir/releases/20161108113840/tmp/cache/cache'   05 : file exists   it searched documentation, stack overflow , github issues hours now..
the behaviour same for: append :linked_dirs, "log", "tmp/pids", "tmp/cache" ...
- i tried capistrano 3.4, 3.5
 - i removed whole app-dir (then worked 1 deployment)
 - i removed specific code in deploy.rb
 - i removed :linked_dirs
 - i tried several ways configure :linked_dirs
 
i glad if has idea else try. :(
 
 
Comments
Post a Comment