Deployment Failed – buildCommand ve startCommand
gofretfkintank
FREEOP

15 days ago

Hey team 👋, my bot fails to deploy on Railway with this error: Deployment failed during initialization process
Failed to parse your service config. buildCommand and startCommand cannot be the same.
The code works fine locally and on the repo, all slash commands and env variables are correct. The issue is only with the Railway config. Currently, buildCommand and startCommand are set the same
And this is the repo
https://github.com/Gofretfkintank/OM-Bot

Screenshot_20260226_212402_Chrome.jpg
Screenshot_20260226_204511_Discord.jpg
Screenshot_20260226_203644_Discord.jpg
Screenshot_20260226_205742_Discord.jpg
Screenshot_20260226_211803_Discord.jpg

Solved

7 Replies

15 days ago

Have you seen the error message in your screenshot?


gofretfkintank
FREEOP

15 days ago

You probably wrote this about the messages the bot sends to the chat, but I've already figured those out. The reason I'm posting this is because it's related to the railway error again.


15 days ago

Failed to parse your service config. `buildCommand` and `startCommand` cannot be the same. You've likely set this as a mistake. To start a server on Railway, remove the `buildCommand` and set the `startCommand` to the command to start your server.

15 days ago

This is what your build has failed with.


gofretfkintank
FREEOP

15 days ago

Okay, I understand now. Sorry for wasting your time; I've been spending the last few days fixing bot errors.


gofretfkintank
FREEOP

15 days ago

That's why I understood it a little late.


15 days ago

No worries


Status changed to Solved brody 14 days ago


Loading...