R
Railway•7mo 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•7mo ago
Project ID: 69409740-c382-4712-8ce7-4a2e4f9d0aa0
Luiz Bello
Luiz BelloOP•7mo ago
69409740-c382-4712-8ce7-4a2e4f9d0aa0
Brody
Brody•7mo ago
perhaps you have set an incorrect location for it in your service settings?
Luiz Bello
Luiz BelloOP•7mo ago
I put it like this in the settings, the file is in the root folder
Brody
Brody•7mo ago
try removing that
Luiz Bello
Luiz BelloOP•7mo ago
and now the manual deploy is not working either
Brody
Brody•7mo ago
your service was unavailable what kind of app?
Luiz Bello
Luiz BelloOP•7mo ago
node
Brody
Brody•7mo ago
what do the deployment logs show?
Luiz Bello
Luiz BelloOP•7mo ago
only this
Brody
Brody•7mo ago
should there be more logs? or is that normal for your app?
Luiz Bello
Luiz BelloOP•7mo 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•7mo 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 BelloOP•7mo ago
npm start or nest start
Medim
Medim•7mo ago
Where did you define that? Only in the package.json?
Luiz Bello
Luiz BelloOP•7mo ago
yes
Medim
Medim•7mo ago
remove the startCommand from the railway.toml
Luiz Bello
Luiz BelloOP•7mo ago
I tested this now and the same error remains
Brody
Brody•7mo ago
what do your deployment logs look like now
Luiz Bello
Luiz BelloOP•7mo ago
Brody
Brody•7mo ago
those are your build logs
Luiz Bello
Luiz BelloOP•7mo ago
ops but
Brody
Brody•7mo ago
remove the health check from the railway.toml
Luiz Bello
Luiz BelloOP•7mo 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•7mo ago
yeah, just remove that buildCommand but seems good to me
Luiz Bello
Luiz BelloOP•7mo ago
ok, it's working Thanks to both of you for your help
Medim
Medim•7mo ago
Time for my marketing @Luiz Bello Do you mind upvoting this community suggestion ? Bora trazer o Railway pro Brasil 😉
Luiz Bello
Luiz BelloOP•7mo ago
opa, é brasileiro? o que preciso fazer ali?
Medim
Medim•7mo ago
Só logar e clicar na setinha de upvote
Luiz Bello
Luiz BelloOP•7mo ago
Feito! 🤟
Want results from more Discord servers?
Add your server