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

Font awesome not working in production #1762

Closed
mickenorlen opened this issue Mar 25, 2020 · 0 comments · Fixed by #1765
Closed

Font awesome not working in production #1762

mickenorlen opened this issue Mar 25, 2020 · 0 comments · Fixed by #1765

Comments

@mickenorlen
Copy link
Contributor

mickenorlen commented Mar 25, 2020

Steps to reproduce

Enter admin in production environment. Tested in local production simulation as well as on my real production domain (screenshots from local simulation).

Expected behavior

Icons should appear

Actual behavior

Tell us what happens instead
image

Note that all other assets including other font files come through
image

And that they seem to be listed correctly in manifest:

{
  "logical_path":"fa-regular-400.woff",
  "mtime":"2020-03-25T14:37:04+00:00",
  "size":16800,
  "digest":"532a487f4862ddaa7de6f6e1f79b03ff25ac5f2ad8ab683a9edfa0ab85f81629",
  "integrity":"sha256-UypIf0hi3ap95vbh95sD/yWsXyrYq2g6nt+gq4X4Fik="
},

"fa-regular-400.woff":
"fa-regular-400-532a487f4862ddaa7de6f6e1f79b03ff25ac5f2ad8ab683a9edfa0ab85f81629.woff"

(manifest mentioned file exists: public/assets/fa-regular-400-532a487f4862ddaa7de6f6e1f79b03ff25ac5f2ad8ab683a9edfa0ab85f81629.woff)

I noticed that the request url is a bit off with double //:
assets//fa-regular-400.woff

Editing this and resending the request did nothing...

Detailed request info:

Request URL:http://localhost:81/assets//fa-regular-400.woff
Request Method:GET
Remote Address:127.0.0.1:81
Status Code: 404
Version:HTTP/1.1
Referrer Policy:no-referrer-when-downgrade

HTTP/1.1 404 Not Found
Server: nginx/1.16.1
Date: Wed, 25 Mar 2020 14:45:09 GMT
Content-Type: text/html; charset=UTF-8
Content-Length: 1722
Connection: keep-alive
X-Request-Id: 756011a3-dd60-41c3-a9fd-1a5f794fe24e
X-Runtime: 0.004165

Host: localhost:81
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:74.0) Gecko/20100101 Firefox/74.0
Accept: application/font-woff2;q=1.0,application/font-woff;q=0.9,*/*;q=0.8
Accept-Language: en-US,en;q=0.5
Accept-Encoding: identity
Connection: keep-alive
Referer: http://localhost:81/assets/alchemy/admin/all-709fa8d3cd5196e8b3ada1f63bbd303e2d582be061fcf8ad1b94505227966807.css
Cookie: adminer_permanent=; alchemy_items_per_page=15; adminer_sid=fb61541d20fb6e97d9c1c3f5b564e608; adminer_key=261cbb201d0945ab27294f53a131125c; _app_session=gqTXBpGlxG9jrmOnrIULbacfcR3Px8EM4llJu2wcF4xYxQ9UdPhtP2YUiBPmpWgPJHRvC%2BpJ9Z3R%2FctuiDcu3YH0FAiMixTT1nBj6SEuUiNjsmahNyGJLZ7iL3lAu5nNAagU0b8gJeWeUrzCqeFG0gbKj1tLOq6YyK%2FdjyJovj9mgSi9bpdh%2FzuG%2Br%2B3CigNxKCKM6ld12ODIfUhgYp6TfkPdR30GatWwriUp36cLm9BdBlckM5f5RuTPAPYGQQtHdR4zPUlM9PBpVMsy1%2Fv7FCimAWeBblNht%2BPMXTKVRS2lDmbsN%2BbvH7G6qF8m%2BworKtBMtlt8gJAIGvfTqAGXqz0TSiIp21ed1QcXU79xBnAmrVhR3IA3wrJafWfLPjRlB8Rqe5O3153XkaSuob1V8EOi2hNBuk1LXO9s8WfBn8P1XLadYpwAoG8RQ0WcA4%2FceFub2%2BiRdhwJ90walnVnFQPbNKTS92pNvcNzPxxLGrB6TW3GURMVNR0xUKAWHxB5eoNjPhNLygF%2B0b6E1B2MyzRN%2BdA2y3QKZlO9cUThUu5DdmRZvQTHmEh3ZfjLMBjCjAibVEIYDAWM5c6Iy7XxUchxT2J2YSXZocHqli%2F5KO7vjpdMQg%2BnoqbreXEWfFpRXgXKw%3D%3D--nPsjahyQtYowdPaD--2TcW3paM%2BxzoyNMyaAkbxA%3D%3D; alchemy_pictures_per_page=20
DNT: 1
Pragma: no-cache
Cache-Control: no-cache

Similar issues. Not sure if related as they use gem variants.

bokmann/font-awesome-rails#74
bokmann/font-awesome-rails#183

System configuration

  • Alchemy Version: 5.0.0
  • Rails Version: 6.0

Here is my nginx conf (docker setup)
https://gist.github.com/satendra02/1b335b06bfc5921df486f26bd98e0e89#file-nginx-conf

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.

1 participant