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

how use it in test environment ? #108

Open
wafcio opened this issue Aug 26, 2014 · 2 comments
Open

how use it in test environment ? #108

wafcio opened this issue Aug 26, 2014 · 2 comments

Comments

@wafcio
Copy link

wafcio commented Aug 26, 2014

I am usign bootstrap which have additional font, which work fine in development because relative path looks like

/assets/bootstrap/less/bootstrap.css

unfortunatelly in test environment assets are compiled to one file

/assets/application.css

but relative url is still the same, so url to font is now

/font/glyphicon....

which is incorrect, so is there any way to fix it ?

@SergeyKishenin
Copy link
Collaborator

Have you tried to run RAILS_ENV=test rake bower:resolve? It may help you.

Actually we have some problems with fonts and its relative urls #66, #83. Possible fix is in #85, now waiting for some fixes in bowerify gem.

@wafcio
Copy link
Author

wafcio commented Aug 27, 2014

yes i had tried it, but after that i found solution, for test environment, but i don't know if it will be work in precompile assets.

My solution based on write path to css/sass/less file instead of bower package name in application.css. This solution is little freak so please don't close this issue, after bower-rails can be used without extra settings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants