Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

deploy:link_shared_paths Fails! Too many levels of symbolic links #448

Closed
tanmei2 opened this issue Oct 5, 2016 · 1 comment
Closed

Comments

@tanmei2
Copy link

tanmei2 commented Oct 5, 2016

Hey there!

I have a problem with mina deploy

-----> Symlinking shared paths
       $ mkdir -p ./vendor
       $ rm -rf "./vendor/bundle"
       $ ln -s "/export/app/koob/shared/vendor/bundle" "./vendor/bundle"
       $ mkdir -p .
       $ rm -rf "./log"
       $ ln -s "/export/app/koob/shared/log" "./log"
       $ mkdir -p ./tmp
       $ rm -rf "./tmp/cache"
       $ ln -s "/export/app/koob/shared/tmp/cache" "./tmp/cache"
       $ mkdir -p ./public
       $ rm -rf "./public/assets"
       $ ln -s "/export/app/koob/shared/public/assets" "./public/assets"
       $ mkdir -p .
       $ rm -rf "./config"
       $ ln -s "/export/app/koob/shared/config" "./config"
       $ ln -s "/export/app/koob/shared/config/database.yml" "./config/database.yml"
       ln: failed to access "./config/database.yml":  Too many levels of symbolic links
 !     ERROR: Deploy failed.

in my deploy file:

# They will be linked in the 'deploy:link_shared_paths' step.
set :shared_dirs, fetch(:shared_dirs, []).push('config')
set :shared_files, fetch(:shared_files, []).push('config/database.yml', 'config/secrets.yml')

I am using the CentOS 7.2.1511.

@d4be4st
Copy link
Member

d4be4st commented Oct 12, 2016

@tanmei2
your shared_files are included in your shared_dirs

Either you share the whole folder, or just specific files in a folder

so you need only one of those set :shared_*, not both

@d4be4st d4be4st closed this as completed Oct 12, 2016
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants