Deployment Failed – buildCommand ve startCommand
gofretfkintank
HOBBYOP

4 months 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

4 months ago

Have you seen the error message in your screenshot?


gofretfkintank
HOBBYOP

4 months 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.


4 months 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.

4 months ago

This is what your build has failed with.


gofretfkintank
HOBBYOP

4 months ago

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


gofretfkintank
HOBBYOP

4 months ago

That's why I understood it a little late.


4 months ago

No worries


Status changed to Solved brody 4 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...