Configure Railway to deploy every push to a repo by going to Deployments > Triggers in your project. Here you can select a GitHub repo and branch to deploy from. If you have more than 1 Railway environment, you can select which environment to use.
It is possible to create multiple triggers. With this workflow you can connect to your repo and
- Deploy master using the production environment
- Deploy staging using the staging environment
Edit this file on GitHub