Can't deploy via GitHub Actions
luizpbello
HOBBYOP

2 years ago

I can't deploy via github actions, I'm trying to deploy but it keeps giving the error: config file railway.toml does not exist

but I have the .toml file in the repository

railway.toml:

[build]
builder = "nixpacks"
buildCommand = "echo building!"

[deploy]
startCommand = "echo starting!"
healthcheckPath = "/"
healthcheckTimeout = 100
restartPolicyType = "never"

43 Replies

luizpbello
HOBBYOP

2 years ago

69409740-c382-4712-8ce7-4a2e4f9d0aa0


2 years ago

perhaps you have set an incorrect location for it in your service settings?


luizpbello
HOBBYOP

2 years ago

I put it like this in the settings, the file is in the root folder

1242546264592351200


2 years ago

try removing that


luizpbello
HOBBYOP

2 years ago

and now the manual deploy is not working either

1242546623058546700


2 years ago

your service was unavailable


2 years ago

what kind of app?


luizpbello
HOBBYOP

2 years ago

node


2 years ago

what do the deployment logs show?


luizpbello
HOBBYOP

2 years ago

1242547011975123000


luizpbello
HOBBYOP

2 years ago

only this


2 years ago

should there be more logs? or is that normal for your app?


luizpbello
HOBBYOP

2 years ago

it's my first app in railway, but i think should have more logs


luizpbello
HOBBYOP

2 years ago

the deployment failed


luizpbello
HOBBYOP

2 years ago

but the only error logs were in the build


luizpbello
HOBBYOP

2 years ago

i try again , same error


luizpbello
HOBBYOP

2 years ago

1242547668551467000


luizpbello
HOBBYOP

2 years ago

I didn't touch that part

1242547827431964700


2 years ago

I mean, isn't it working? It echo'ed your start command which is "echo starting!"


2 years ago

what is your start command?


luizpbello
HOBBYOP

2 years ago

npm start or nest start


2 years ago

Where did you define that? Only in the package.json?


luizpbello
HOBBYOP

2 years ago

yes


2 years ago

remove the startCommand from the railway.toml


luizpbello
HOBBYOP

2 years ago

I tested this now and the same error remains


2 years ago

what do your deployment logs look like now


luizpbello
HOBBYOP

2 years ago

1242553443424534500


2 years ago

those are your build logs


luizpbello
HOBBYOP

2 years ago

ops


luizpbello
HOBBYOP

2 years ago

1242553693157724200


luizpbello
HOBBYOP

2 years ago

but

1242553741870104600


2 years ago

remove the health check from the railway.toml


luizpbello
HOBBYOP

2 years ago

the toml will look like this

[build]
builder = "nixpacks"
buildCommand = "echo building!"

[deploy]
restartPolicyType = "never"

`


luizpbello
HOBBYOP

2 years ago

is correct?


2 years ago

yeah, just remove that buildCommand but seems good to me


luizpbello
HOBBYOP

2 years ago

ok, it's working


luizpbello
HOBBYOP

2 years ago

1242556422219108600


luizpbello
HOBBYOP

2 years ago

Thanks to both of you for your help


2 years ago

Time for my marketing


2 years ago

@Luiz Bello Do you mind upvoting this community suggestion ? Bora trazer o Railway pro Brasil 😉


luizpbello
HOBBYOP

2 years ago

opa, é brasileiro? o que preciso fazer ali?


2 years ago

Só logar e clicar na setinha de upvote


luizpbello
HOBBYOP

2 years ago

Feito! 🤟


Loading...