Hey Guys,
I have deployed my learning/tools project on Render.com .
However, I’m running into an issue. I have used custom Fonts for my site, which works in dev and production build locally, however, when I deploy it using Render, it fails.
See: DerpyTools
Expectation:
In digested CSS, the font is supposed to be referred in this way:
url(/fonts/barriecito-94c9ab0c4e14aa8632e6f0f13bd5dfbb.ttf?vsn=d)
Reality
In digested CSS, the font is referred in this way:
url(/fonts/barriecito.ttf)
Build.sh
#!/usr/bin/env bash
# exit on error
set -o errexit
# Initial setup
mix deps.get --only prod
MIX_ENV=prod mix compile
# Compile assets
MIX_ENV=prod mix assets.deploy
# Build the release and overwrite the existing release directory
MIX_ENV=prod mix release --overwrite
I’m using Elixir & Phoenix.
The prod build works amicably locally:
Expectation
However, after deploying to Render, the hash values are not being generated.
Keith
July 26, 2023, 3:11am
3
HI there,
When running your production build locally are you also using Docker?
Regards,
Keith
Render Support, UTC+10
system
Closed
August 20, 2023, 5:17pm
4
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.