R
Railway17mo ago
x4zx

Deploy Application

How can I update the configuration file so that the src\discord\omnibytes\main.py file is launched on deployment? The railway.json file is currently:
{
"$schema": "https://railway.app/railway.schema.json",
{ "build": {
{ "builder": { "NIXPACKSPACKS",
"nixpacksPlan": {
{ "providers": ["python"]
}
},
}, "deploy": {
"startCommand": "",
{ "restartPolicyType": "ON_FAILURE",
}, "restartPolicyMaxRetries": 10
}
}
{
"$schema": "https://railway.app/railway.schema.json",
{ "build": {
{ "builder": { "NIXPACKSPACKS",
"nixpacksPlan": {
{ "providers": ["python"]
}
},
}, "deploy": {
"startCommand": "",
{ "restartPolicyType": "ON_FAILURE",
}, "restartPolicyMaxRetries": 10
}
}
Solution:
in the service settings, try setting the root directory to /src/discord/omnibytes assuming you have a requirements.txt file in that folder python should automatically be detected so you'll need to remove your railway.json file because it has a blank start command and that will screw deployment up...
Jump to solution
4 Replies
Percy
Percy17mo ago
Project ID: N/A
x4zx
x4zxOP17mo ago
N/A
Fragly
Fragly17mo ago
pretty sure it should automatically detect and run the main.py file on startup or actually, might have to override the start script because I don't think it accounts for the path
Solution
Brody
Brody17mo ago
in the service settings, try setting the root directory to /src/discord/omnibytes assuming you have a requirements.txt file in that folder python should automatically be detected so you'll need to remove your railway.json file because it has a blank start command and that will screw deployment up
Want results from more Discord servers?
Add your server