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
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
Project ID:
N/A
2999b3ba-4058-47fa-95a8-078486652ecc
I think you want to use the
--project_id
flag for the project idAh 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