R
Railway10mo ago
amorfati

in a repo I have a `Dockerfile` in a subpath, when I run deploy it deploys entire repo

I have ./anvil/Dockerfile and ./Dockerfile. I run RAILWAY_DOCKERFILE_PATH=./anvil/Dockerfile railway up --service anvil and it deploys everything and uses root Dockerfile. How can I deploy just that one Dockerfile I specified the path for?
16 Replies
Percy
Percy10mo ago
Project ID: N/A
Brody
Brody10mo ago
could you set the root directory to /anvil and remove the dockerfile path variable?
amorfati
amorfati10mo ago
you mean run railway up in the level where the Dockerfile I want to deploy is at?
Brody
Brody10mo ago
nope, set the root directory of the service to /anvil that setting can be found in the service settings
amorfati
amorfati10mo ago
don't see it
Brody
Brody10mo ago
it's in the service settings
amorfati
amorfati10mo ago
Brody
Brody10mo ago
disable staged changes
amorfati
amorfati10mo ago
where's that?
Brody
Brody10mo ago
in the flags
amorfati
amorfati10mo ago
don't see it
Brody
Brody10mo ago
in your account settings
amorfati
amorfati10mo ago
ok I'm part of a team
amorfati
amorfati10mo ago
one of these?
No description
Brody
Brody10mo ago
sorry, its called Updated Environments now disable that
Brody
Brody10mo ago
you can now set the root directory
No description
Want results from more Discord servers?
Add your server