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

Glyphicons cannot be found with Heroku Deployment #410

Closed
ryanlatham opened this issue Apr 19, 2014 · 2 comments
Closed

Glyphicons cannot be found with Heroku Deployment #410

ryanlatham opened this issue Apr 19, 2014 · 2 comments

Comments

@ryanlatham
Copy link

When deploying to Heroku, Bootstrap's Glyphicons cannot be found by the browser. As a consequence, all Glyphicons will be replaced with an empty box.

selection_002

It looks like this is a frequent problem with ruby builds on Heroku, but I couldn't find any mention of the issue for Javascript. I believe it is caused by the minify step.

Edit:

It looks like one of two things will have to be done. Either move the fonts file into the public/build/ directory after running bower install, or after bower has run, modify the minified CSS file to point to the original fonts location. The second way seems extraordinarily hacky/error prone.

As for moving the fonts file; it should be possible with a simple fs.rename(...). Anyone know where in the build process would be the most appropriate place to do this? It will need to be done after bower has loaded bootstrap, but before slug compilation has completed.

@ryanlatham
Copy link
Author

I found a better solution using grunt. I will put a PR shortly.

@jackhsu978
Copy link
Contributor

I encountered the same problem, and I'm currently just taking out bootstrap from bower dependency and load it from CDN. I think it's a valid option.

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 a pull request may close this issue.

3 participants