jigglyjams
Github Related Environment Variables missing
I am having trouble accessing the github related environment variables for a project. The project is setup to deploy from github triggers and based on the docs here I was assuming I could access them by setting up a variable like:
RAILWAY_GIT_REPO_OWNER = ${{RAILWAY_GIT_REPO_OWNER}}
Is this not the case? How does one set this up? Thanks!10 replies
Using SQL pool for multiple requests
I am running a Node.js express API and using the
mysql2
library to connect to a self-host mysql server (not possible to host on railway since it is using dolt, a git like sql server).
I have tried to use pooling with mysql2.createPool({...})
but this seems to open up a new sql connection each time instead of reusing an existing one. Eventually my sql server gets angry with so many connections open.
I have added a 60s timeout on the server end but am wondering if there is there a proper way to implement the pool connection such that railway will reuse across API requests? Or will I need to manually open and close each connection?
Thanks <a:party_railway:812486353853218816>4 replies
Force rebuild without pushing to github?
I was seeing build fail a few times yesterday from the outage and then needed to force a rebuild later my pushing a small change to a file.
Is there a way to force a build to kick off without any code changes? Does
railway up
from the CLI allow for this? Thanks!6 replies