#Custom build command using bash init.sh
12 messages · Page 1 of 1 (latest)
Project ID: N/A
N/A
You’ll see the option to configure a custom start command in the “Deploy” category beneath that.
This is deploy command, not build command, I checked it!
Ohh, build command. My apologies.
To enable your custom build command instead of the auto-detected Dockerfile during the deployment on Railway, you can follow these steps:
-
Create a
railway.tomlfile: In your project's root directory, create a file namedrailway.toml. This file will allow you to customize the deployment settings. -
Specify the build command: Open the
railway.tomlfile and add the following content:[build] command = "bash init.sh"Replace
"bash init.sh"with your actual build command. -
Commit and push changes: Save the
railway.tomlfile, commit your changes, and push them to your repository. -
Deploy on Railway: With the
railway.tomlfile in place, Railway will use your specified build command (bash init.sh) instead of the auto-detected Dockerfile during deployment.
seems like it does not work, it pushed it on but nothing changed