mina-deploy / mina

Blazing fast deployer and server automation tool
https://rubygems.org/gems/mina
Other
4.34k stars 491 forks source link

Fix for nested linked files #589

Closed flowerett closed 6 years ago

flowerett commented 6 years ago

When linked files directive has link nested in some dir, e.g.

set :shared_files, fetch(:shared_files, []).push('config/my_secret.yml')

and the directory config is missing in the release folder, release fail

This is a fix for this case.

d4be4st commented 6 years ago

This is actually creating linked fodlers: https://github.com/mina-deploy/mina/blob/master/tasks/mina/deploy.rb#L85

The problem you probably had was that you added a shared_file after you ran setup and forgot to run setup again.

But this should warn you on newer versions: https://github.com/mina-deploy/mina/blob/master/tasks/mina/deploy.rb#L25