R
Railway3mo ago
mannyx

nx railway and GitHub actions

@IgnisDa 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
GitHub
npm-libs/deployment/railway-trigger.sh at main · IgnisDa/npm-libs
A set of packages for different javascript needs . Contribute to IgnisDa/npm-libs development by creating an account on GitHub.
13 Replies
Percy
Percy3mo ago
Project ID: N/A
mannyx
mannyxOP3mo ago
N / A
IgnisDa
IgnisDa3mo 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
mannyx
mannyxOP3mo ago
Hmm.. you will have to spell it out for me haha. Not sure what needs to be done Have tried several option but still not working unfortunately I’m getting /tmp/railway: No such file or directory @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? Or is this approach no longer recommended?
Brody
Brody3mo 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?
mannyx
mannyxOP3mo 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
Brody
Brody3mo 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?
mannyx
mannyxOP3mo ago
How would it work for multiple environments Can I specificy which branch triggers the deployment on railway?
Brody
Brody3mo ago
yes of course, you can choose the branch to deploy from in your service settings
mannyx
mannyxOP3mo ago
That’s excellent and will do that but I also do like the idea of deploying via actions So I can consolidate everything on GitHub Whereas I’d have check railway after each push
Brody
Brody3mo 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!
mannyx
mannyxOP3mo ago
That’s great, I will do that! Will be back with some questions if I’m having issuess Thanks for the swift response btw !
Brody
Brody3mo ago
no problem!
Want results from more Discord servers?
Add your server