Deploy from Gitlab fails
I am getting the error:
error sending request for url (https://backboard.railway-develop.app/graphql/v2): error trying to connect: tcp connect error: Connection refused (os error 111)
After following the Railway Gitlab guide to install the railway CLI, any suggestions? Looks like this endpoint is down
9 Replies
Project ID:
a20c8f8b-11c2-4e12-bac5-1e035834194c
a20c8f8b-11c2-4e12-bac5-1e035834194c
are you setting the
RAILWAY_ENV
variable anywhere?yeah I set it in the variables section
.install-railway:
stage: railway
image: node:16.0.0
variables:
RAILWAY_TOKEN: $RAILWAY_TOKEN
RAILWAY_ENV: $RAILWAY_ENV
RAILWAY_SERVICE_NAME: $RAILWAY_SERVICE_NAME
script:
- yarn global add @railway/cli
- railway environment $RAILWAY_ENV
- railway up --service=$RAILWAY_SERVICE_NAME -d
and what are you setting
RAILWAY_ENV
to?in this case dev, I am trying to point to my dev environment in my project
remove all
RAILWAY_ENV
variables
and if you have an enviroment named dev
then you would want to do railway up --environment dev --service $RAILWAY_SERVICE_NAME --detech
This worked thank you!
awesome