a month ago
Hey all! So I'm new to deploying on Railway and I have everythign setup but theres one thing I'm having an issue with. I don't know why the RAILPACK_BUILD_APT_PACKAGES isn't working. I think I'm doing this right but it wont pull the APT package like I hoped.
2 Replies
a month ago
Needs to be on the service not shared.
a month ago
hey, you might need to directly install the version/libs you need directly in RAILWAY_BUILDER or NIXPACKS depending, or you can just directly use a config file which is railpack.json like stated here
it installs it on runtime as stated in the docs - in your build logs, is it actually installing though? (Installing APT packages . . .) can you drop your error logs?
a month ago
Also, extending on this answer, please confirm that you're using Railpack in this case and share both logs from the first deployment and any subsequent deployments.
a month ago
Are you able to share your railpack.json? It would help people looking at this thread. And thanks monuit for the answer!
{
"$schema": "https://schema.railpack.com",
"deploy": {
"aptPackages": [
"gettext"
]
}
}a month ago
Thanks!
a month ago
!s
Status changed to Solved passos • about 1 month ago
Status changed to Open passos • about 1 month ago
Status changed to Solved passos • about 1 month ago
a month ago
You need to use the RAILPACK_DEPLOY_APT_PACKAGES environment variable if you want the apt packages to be available in the deploy and not just the build
