eyenalxai
PROOP
3 months ago
I have this railway.json:
{
"$schema": "https://railway.com/railway.schema.json",
"deploy": {
"aptPackages": ["git"],
"overlapSeconds": 0,
"drainingSeconds": 0,
"startCommand": "bun start",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 5,
"healthcheckPath": "/health",
"healthcheckTimeout": 100,
"multiRegionConfig": {
"europe-west4-drams3a": {
"numReplicas": 1
}
}
}
}But i still get:
Git binary not found at /usr/bin/git: Command failed: /usr/bin/git --version
/bin/sh: 1: /usr/bin/git: not found
I also tried just git and /bin/git, it's not there. How do I install external package?
1 Replies
3 months ago
I don't think "aptPackages" is a valid field in a railway.json
what you can do instead is use the RAILPACK_DEPLOY_APT_PACKAGES service variable to install git, assuming you're using Railpack as your builder