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

Missing precompiled fonts assets in fresh install #48

Open
icarito opened this issue Oct 6, 2015 · 7 comments
Open

Missing precompiled fonts assets in fresh install #48

icarito opened this issue Oct 6, 2015 · 7 comments

Comments

@icarito
Copy link
Member

icarito commented Oct 6, 2015

GET http://mapmill.org/assets/fontawesome-webfont.woff?v=4.2.0 w @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.extend.css @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2_ @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1b @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1E @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.fn.extend.show @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.each.Q.fn.(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.fn.extend.toggle @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.each.Q.fn.(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2h.fill @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7h.update @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:6h @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:6(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7Q.extend.each @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.fn.Q.each @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1d @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7(anonymous function) @ home-00e055e058c310811a0814a11d25d6dd.js:1Q.Callbacks.u @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.Callbacks.c.fireWith @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.extend.ready @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2r @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1
application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1 GET http://mapmill.org/assets/fonts/glyphicons-halflings-regular.woff w @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.extend.css @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2_ @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1b @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1E @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.fn.extend.show @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.each.Q.fn.(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.fn.extend.toggle @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.each.Q.fn.(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2h.fill @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7h.update @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:6h @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:6(anonymous function) @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7Q.extend.each @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1Q.fn.Q.each @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1d @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:7(anonymous function) @ home-00e055e058c310811a0814a11d25d6dd.js:1Q.Callbacks.u @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.Callbacks.c.fireWith @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2Q.extend.ready @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:2r @ application-8f43721b52689a1e5aa9bedb7bc5a7bb.js:1
mapmill.org/:1 GET http://mapmill.org/assets/fontawesome-webfont.ttf?v=4.2.0 404 (Not Found)
mapmill.org/:1 GET http://mapmill.org/assets/fonts/glyphicons-halflings-regular.ttf 
/fonts/fontawesome-webfont.woff?v=4.2.0:1 GET http://mapmill.org/fonts/fontawesome-webfont.woff?v=4.2.0 
/fonts/glyphicons-halflings-regular.woff2:1 GET http://mapmill.org/fonts/glyphicons-halflings-regular.woff2 
/fonts/glyphicons-halflings-regular.woff:1 GET http://mapmill.org/fonts/glyphicons-halflings-regular.woff 
/fonts/fontawesome-webfont.ttf?v=4.2.0:1 GET http://mapmill.org/fonts/fontawesome-webfont.ttf?v=4.2.0 
/fonts/glyphicons-halflings-regular.ttf:1 GET http://mapmill.org/fonts/glyphicons-halflings-regular.ttf 
@icarito
Copy link
Member Author

icarito commented Oct 6, 2015

This is logs from my browser showing 404 for glyphicons and fontawesome. This, again is after installing all dependencies, and precompiling assets for production.

@jywarren
Copy link
Member

jywarren commented Oct 6, 2015

Ack, i remember that these require some special config to work with Rails'
asset pipeline:
https://github.com/publiclab/mapknitter/blob/master/app/views/layouts/application.html.erb#L15

They must be excluded from the pipeline, or the font files must be included
in the assets directory (statically, i guess?). Not great.

In MapKnitter, we make the uncompiled bower dependencies world-readable by
putting their folder in /public/lib/ rather than in /vendor/assets/ -- we
could do the same here, and then not compile fontawesome?

(Glyphicons doesn't matter because it's overridden by FontAwesome.)

What do you think?

On Tue, Oct 6, 2015 at 7:08 PM, Sebastian Silva notifications@github.com
wrote:

This is logs from my browser showing 404 for glyphicons and fontawesome.
This, again is after installing all dependencies, and precompiling assets
for production.


Reply to this email directly or view it on GitHub
#48 (comment).

@icarito
Copy link
Member Author

icarito commented Oct 7, 2015

I'd rather try something like this: https://github.com/bokmann/font-awesome-rails
Basically, it says, add to the Gemfile:

gem "font-awesome-rails"

and then to the CSS file:

/*
 *= require font-awesome
 */

It would be my preferred solution.

@icarito
Copy link
Member Author

icarito commented Oct 7, 2015

I'll give it a try.

@icarito
Copy link
Member Author

icarito commented Oct 7, 2015

Hmm looks like this is exactly what it's trying to do. I'll debug it today.

@icarito
Copy link
Member Author

icarito commented Oct 8, 2015

This looks like an issue which is confusing a lot of people including me: bokmann/font-awesome-rails#113
After spending a great deal of time trying to debug this, I've fixed it 'manually' by copying the fonts files into the assets directory.

@jywarren
Copy link
Member

jywarren commented Oct 8, 2015

Super; sounds good. I wonder if we should just commit the static files
in... even if it's sort of "wrong" -- until we have a better solution, so
that folks downloading the source get a working copy.

On Thu, Oct 8, 2015 at 5:47 AM, Sebastian Silva notifications@github.com
wrote:

This looks like an issue which is confusing a lot of people including me:
bokmann/font-awesome-rails#113
bokmann/font-awesome-rails#113
After spending a great deal of time trying to debug this, I've fixed it
'manually' by copying the fonts files into the assets directory.


Reply to this email directly or view it on GitHub
#48 (comment).

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

2 participants