Watch paths does not work properly with railway config file

2 years ago

In my first project, I have defined watch paths via railway.json file and it is not working.

tried both ways by adding prefixing the paths with / and still does not seems to work.


In my second project, I have defined watch paths via UI and works as expected.

Closed

11 Replies

2 years ago

In my first project, I have defined watch paths via railway.json file and it is not working.

tried both ways by adding prefixing the paths with / and still does not seems to work.


In my second project, I have defined watch paths via UI and works as expected.


2 years ago

are you trying to use the new builder?


2 years ago

Yes


2 years ago

the new builder does not support pulling service config from the railway.json file and it also does not support watch paths


2 years ago

Are there any future plans to support watch pattern in new builder?


2 years ago

when / if it goes into GA it will support those things, i dont have an ETA. we recommend you use the legacy builder for now, its much faster now that we use buildkit now


2 years ago

I tied disabling the new builder, but for some reason it gets back on automatically


2 years ago

you likely are enabling it elsewhere


2 years ago

Hmm…. Wdym


2 years ago

like in a railway.toml file


2 years ago

I don’t see any explicit property set for that,


{
  "$schema": "https://railway.app/railway.schema.json",
  "build": {
    "builder": "DOCKERFILE",
    "watchPatterns": [
    // ….
    ],
    "dockerfilePath": "api-v2.prod.Dockerfile",
    "buildEnvironment": "V2"
  },
  "deploy": {
    "runtime": "V2",
    "numReplicas": 1,
    "sleepApplication": false,
    "restartPolicyType": "ON_FAILURE",
    "restartPolicyMaxRetries": 10
  }
}

Welcome!

Sign in to your Railway account to join the conversation.

Loading...