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

URLs fail to correctly format when symlinked #172

Open
ChrisHughes opened this issue Oct 3, 2014 · 0 comments
Open

URLs fail to correctly format when symlinked #172

ChrisHughes opened this issue Oct 3, 2014 · 0 comments

Comments

@ChrisHughes
Copy link

Using realpath in the get_file and find_file functions means that compass's font-url, image-url, etc all fail because it relies on first finding the file as a filesystem path, then doing a string substitution for the current DOCUMENT_ROOT. This fails when symlinking code into the web folder from, say, a project directory outside the current web root.

We use a similar setup for rails and rails's compass does not do this - it works as expected.

I believe the issue is the reliance on realpath which removes symlinks, where symlinks should ideally be preserved.

Another issue I'd love to see fixed is providing an option when initializing the SassParser to output external urls, containing the current domain name. When hosting compiled assets on a CDN, this causes all font / image urls to fail, as they are relative to the current host which is the CDN, but were compiled on a separate server with a separate hostname.

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

No branches or pull requests

1 participant