Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Don't link public/assets if public is linked #200

Merged
merged 1 commit into from
Mar 4, 2017

Conversation

mattbrictson
Copy link
Member

If the user has already added "public" to Capistrano's :linked_dirs, then further linking "public/assets" is not only unnecessary, it causes conflicts and asset precompilation fails as a result.

Fix this by checking if "public" is already linked, and if so, skip linking "public/assets".

Fixes #151.

@mattbrictson
Copy link
Member Author

@jboler can you test this branch and let me know if it solves the problem for you? Thanks!

If the user has already added "public" to Capistrano's `:linked_dirs`,
then further linking "public/assets" is not only unnecessary, it causes
conflicts and asset precompilation fails as a result.

Fix this by checking if "public" is already linked, and if so, skip
linking "public/assets".
@mattbrictson mattbrictson force-pushed the avoid-double-symlink-of-public branch from 009b20f to 3203981 Compare March 2, 2017 17:16
@jboler
Copy link

jboler commented Mar 4, 2017

@mattbrictson Yup - that works - thanks!

@mattbrictson
Copy link
Member Author

Thanks for testing! I'll merge it.

@mattbrictson mattbrictson merged commit 8334fcc into master Mar 4, 2017
@mattbrictson mattbrictson deleted the avoid-double-symlink-of-public branch July 12, 2020 23:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants