R
Railway•2mo ago
Luiz Bello

Can't deploy via GitHub Actions

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"
[build]
builder = "nixpacks"
buildCommand = "echo building!"

[deploy]
startCommand = "echo starting!"
healthcheckPath = "/"
healthcheckTimeout = 100
restartPolicyType = "never"
Solution:
yeah, just remove that buildCommand but seems good to me
Jump to solution
30 Replies
Percy
Percy•2mo ago
Project ID: 69409740-c382-4712-8ce7-4a2e4f9d0aa0
Luiz Bello
Luiz Bello•2mo ago
69409740-c382-4712-8ce7-4a2e4f9d0aa0
Brody
Brody•2mo ago
perhaps you have set an incorrect location for it in your service settings?
Luiz Bello
Luiz Bello•2mo ago
I put it like this in the settings, the file is in the root folder
Brody
Brody•2mo ago
try removing that
Luiz Bello
Luiz Bello•2mo ago
and now the manual deploy is not working either
Brody
Brody•2mo ago
your service was unavailable what kind of app?
Luiz Bello
Luiz Bello•2mo ago
node
Brody
Brody•2mo ago
what do the deployment logs show?
Luiz Bello
Luiz Bello•2mo ago
only this
Brody
Brody•2mo ago
should there be more logs? or is that normal for your app?
Luiz Bello
Luiz Bello•2mo ago
it's my first app in railway, but i think should have more logs the deployment failed but the only error logs were in the build i try again , same error I didn't touch that part
Medim
Medim•2mo ago
I mean, isn't it working? It echo'ed your start command which is "echo starting!" what is your start command?
Luiz Bello
Luiz Bello•2mo ago
npm start or nest start
Medim
Medim•2mo ago
Where did you define that? Only in the package.json?
Luiz Bello
Luiz Bello•2mo ago
yes
Medim
Medim•2mo ago
remove the startCommand from the railway.toml
Luiz Bello
Luiz Bello•2mo ago
I tested this now and the same error remains
Brody
Brody•2mo ago
what do your deployment logs look like now
Luiz Bello
Luiz Bello•2mo ago
Brody
Brody•2mo ago
those are your build logs
Luiz Bello
Luiz Bello•2mo ago
ops but
Brody
Brody•2mo ago
remove the health check from the railway.toml
Luiz Bello
Luiz Bello•2mo ago
the toml will look like this
[build]
builder = "nixpacks"
buildCommand = "echo building!"

[deploy]
restartPolicyType = "never"
[build]
builder = "nixpacks"
buildCommand = "echo building!"

[deploy]
restartPolicyType = "never"
` is correct?
Solution
Medim
Medim•2mo ago
yeah, just remove that buildCommand but seems good to me
Luiz Bello
Luiz Bello•2mo ago
ok, it's working Thanks to both of you for your help
Medim
Medim•2mo ago
Time for my marketing @Luiz Bello Do you mind upvoting this community suggestion ? Bora trazer o Railway pro Brasil 😉
Luiz Bello
Luiz Bello•2mo ago
opa, é brasileiro? o que preciso fazer ali?
Medim
Medim•2mo ago
Só logar e clicar na setinha de upvote
Luiz Bello
Luiz Bello•2mo ago
Feito! 🤟