R
Railway11mo 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
Percy11mo ago
Project ID: N/A
Brody
Brody11mo ago
could you set the root directory to /anvil and remove the dockerfile path variable?
amorfati
amorfatiOP11mo ago
you mean run railway up in the level where the Dockerfile I want to deploy is at?
Brody
Brody11mo ago
nope, set the root directory of the service to /anvil that setting can be found in the service settings
amorfati
amorfatiOP11mo ago
don't see it
Brody
Brody11mo ago
it's in the service settings
amorfati
amorfatiOP11mo ago
Brody
Brody11mo ago
disable staged changes
amorfati
amorfatiOP11mo ago
where's that?
Brody
Brody11mo ago
in the flags
amorfati
amorfatiOP11mo ago
don't see it
Brody
Brody11mo ago
in your account settings
amorfati
amorfatiOP11mo ago
ok I'm part of a team
amorfati
amorfatiOP11mo ago
one of these?
No description
Brody
Brody11mo ago
sorry, its called Updated Environments now disable that
Brody
Brody11mo ago
you can now set the root directory
No description
Want results from more Discord servers?
Add your server