abe-101
HOBBYOP
10 months ago
I'm deploying a Django project on Railway, and my railway.json looks like this:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "NIXPACKS"
},
"deploy": {
"startCommand": "python manage.py migrate && npm run build && python manage.py collectstatic --noinput --clear && gunicorn config.wsgi:application",
"restartPolicyType": "ON_FAILURE",
"restartPolicyMaxRetries": 10
}
}The project includes a build step for Webpack, but the deployment fails because Python isn't installed. It seems Nixpacks installs dependencies based on the commands provided, but I need both Python and Node.js for this project.
How can I configure Nixpacks to install both Python and Node.js?
9 Replies
medim
MODERATOR
10 months ago
Hi! You can include it as a provider in the service settings
medim
MODERATOR
10 months ago
there should be a "nodejs" already on the list
medim
MODERATOR
10 months ago
you can also do it through config files with a nixpacks.toml
medim
MODERATOR
10 months ago
railway.json has a nixpacksPlan properties that include a "providers" array
medim
MODERATOR
10 months ago
but I never used it