Set a Start Command
A start command is the process used to run a Deployment's code, for example python main.py
or npm run start
.
Railway automatically configures the start command based on the code being deployed, see Build and Start Commands for more details
Configure the Start Command
When necessary, start commands may be overridden, like for advanced use-cases such as deploying multiple projects from a single monorepo.
When specifying a start command, the behavior of the image depends on type of build:
- Dockerfile: the start command overrides the Docker image's ENTRYPOINT in exec form
- Buildpack: the start command is inserted as a buildpack launch process.
Dockerfiles
If your code uses a Dockerfile, the start command defaults to the ENTRYPOINT
and/or CMD
defined in the Dockerfile.
Edit this file on GitHub