a month ago
Hello Team, I was trying to use railpack build at my dev env and it is really great, but some build might not installed the font properly (never meet this issue with previous build type). basically i just need to change build with nixpack to make it work, but i want to use Railpack in my Prod Env since it give us faster build.
i am using a bash command to install the font and run it with the build command. it is like the font installed asynchronously, which is fine. but the fontconfig is not there.npm run build:prod && chmod +x ./src/install-fonts.sh && ./src/install-fonts.sh
do i miss a config when using Railpack that make the fontconfig not found at random build?
7 Replies
a month ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
a month ago
This thread has been marked as public for community involvement, as it does not contain any sensitive or personal information. Any further activity in this thread will be visible to everyone.
Status changed to Open brody • about 1 month ago
a month ago
Why are you putting the fonts in the system font dir? just keep them in your project directory and use them from there
a month ago
Hey, can you try specifying fontconfig with RAILPACK_BUILD_APT_PACKAGES (and RAILPACK_DEPLOY_APT_PACKAGES) as per the Railpack additional apt packages docs? I have seen a similar issue on GitHub that was caused by missing the fontconfig package.
uxuz
Hey, can you try specifying fontconfig with RAILPACK_BUILD_APT_PACKAGES (and RAILPACK_DEPLOY_APT_PACKAGES) as per the Railpack additional apt packages docs? I have seen a similar issue on GitHub that was caused by missing the fontconfig package.
a month ago
okay thank you, i will try to implement this.
irazvan2745
Why are you putting the fonts in the system font dir? just keep them in your project directory and use them from there
a month ago
Thank you, because of your comment, today I learn that we can make the fontconfig recognize the fonts via env vars.
a month ago
i am trying
- RAILPACK_DEPLOY_APT_PACKAGES = fontconfig
- FONTCONFIG_PATH = app/src/...
lets see, do i still get failed font installation or not from random deployment.
Status changed to Solved uxuz • about 1 month ago
