Subaan
Subaan
RRailway
Created by Muijf on 1/2/2024 in #✋|help
Docker build context
You can do it by connecting the service to the repo and leaving the root directory as the repo root, then you can set dockerfile path in your railway.json/toml like so:
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "apps/your-app/Dockerfile"
//
},
"deploy": {
//
}
}
{
"$schema": "https://railway.app/railway.schema.json",
"build": {
"builder": "DOCKERFILE",
"dockerfilePath": "apps/your-app/Dockerfile"
//
},
"deploy": {
//
}
}
I think you can also set the dockerfile path from the settings ui the above will essentially then run something along the lines of docker build -f apps/your-app/Dockerfile so you can then access all the packages in the repo
4 replies
RRailway
Created by Subaan on 12/31/2023 in #✋|help
Services are building, but hanging on deployment
yeah, just go around to redeploying everything. the postgres instance deployed with no issues, but was still having the same issue with the other service, so just recreated it from scratch and it worked
9 replies
RRailway
Created by Subaan on 12/31/2023 in #✋|help
Services are building, but hanging on deployment
the postgres service also failed after 40mins of hanging on deployment stage saying: Deployment Failed during build process
9 replies
RRailway
Created by Subaan on 12/31/2023 in #✋|help
Services are building, but hanging on deployment
Update: got a build error after ~20mins hanging on the deployment stage on one of the services: ========================= Container failed to start ========================= activity StartToClose timeout
9 replies
RRailway
Created by Subaan on 12/31/2023 in #✋|help
Services are building, but hanging on deployment
All of the services are targeted to deploy to EU West
9 replies