R
Railway13mo ago
h246810

TIps for running Railway CLI where user input/action is unavailable

I am trying to deploy an application to railway in a github workflows file, but every time I try to run the following commands
railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production
railway up --service backend
railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production
railway up --service backend
I get the following error : Failed to prompt for select Caused by: The input device is not a TTY Does anybody know if it is possible to execute these commands from a worfklow where user input/interaction is disabled
4 Replies
Percy
Percy13mo ago
Project ID: N/A
h246810
h24681013mo ago
2999b3ba-4058-47fa-95a8-078486652ecc
Brody
Brody13mo ago
I think you want to use the --project_id flag for the project id
h246810
h24681013mo ago
Ah no I totally goofed. This: railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production when entered in railway cli via my terminal still prompts you for a particular service. so if you specify the service than it should be fine So railway link ${{ secrets.RAILWAY_PROJECT_ID }} --environment production backend Will work
Want results from more Discord servers?
Add your server