nx railway and GitHub actions
kompany-sde
TRIALOP

2 years ago

<@358313783862624259> been trying to follow you setup instructions ci deployments to railway. Everything seem to be working fine, except the railway-trigger.sh file

It manages to install railway but fails to execute at line 11 $RAILWAY_BINARY version

https://github.com/IgnisDa/npm-libs/blob/main/deployment/railway-trigger.sh#L11

Do you know what it could be?

Thanks

17 Replies

kompany-sde
TRIALOP

2 years ago

N / A


ignisda
HOBBY

2 years ago

take a look at https://raw.githubusercontent.com/railwayapp/cli/master/install.sh, the help text tells you which flags it needs. just update them


kompany-sde
TRIALOP

2 years ago

Hmm.. you will have to spell it out for me haha. Not sure what needs to be done


kompany-sde
TRIALOP

2 years ago

Have tried several option but still not working unfortunately


kompany-sde
TRIALOP

2 years ago

I’m getting /tmp/railway: No such file or directory


kompany-sde
TRIALOP

2 years ago

@Brody Hi. I see you’re quite active in the space. Sorry for bothering but do you know by any chance what needs to be done here?


kompany-sde
TRIALOP

2 years ago

Or is this approach no longer recommended?


2 years ago

I mean the repo has been archived, so I'd say no, it's not recommended, I'm not even sure what it achieves?


kompany-sde
TRIALOP

2 years ago

Allows you to publish deploy a nx repo to railway via GitHub ci. I mean the script looks promising and it will definitely help speed things up deploying btn environments if it works


2 years ago

I wasn't aware you need a script to deploy an nx monorepo on railway, why not just add the GitHub repo to your service source?


kompany-sde
TRIALOP

2 years ago

How would it work for multiple environments


kompany-sde
TRIALOP

2 years ago

Can I specificy which branch triggers the deployment on railway?


2 years ago

yes of course, you can choose the branch to deploy from in your service settings


kompany-sde
TRIALOP

2 years ago

That’s excellent and will do that but I also do like the idea of deploying via actions


kompany-sde
TRIALOP

2 years ago

So I can consolidate everything on GitHub


kompany-sde
TRIALOP

2 years ago

Whereas I’d have check railway after each push


2 years ago

add a health check to your service and railway don't push that deploy out until the health check succeeded, and you get status updates from railways GitHub bot in your GitHub repo anyway!


Loading...