jins
Explore posts from serversConnect to public or private DB URL from app?
I'm just coming back around to updating an old project sicne the DB migrations a few months back.
I have PgBouncer connected to my Postgres DB.
- From my app I am connecting to the Public DB URL for PgBouncer
- then PgBouncer connects to the Postgres DB via private internal connection (whatever was setup during that deployment).
I just need to confirm that the app connecting to the public DB url is correct.
Thanks
12 replies
How to add pgBouncer to existing Postgres database
Are there any guide on adding pgBouncer to an existing Postgres DB on Railway?
I saw this template but I'm sure this deploys a brand new DB?
https://railway.app/template/OpUzwe
19 replies
RAILWAY_PUBLIC_DOMAIN when custom domain is set
I don't have access to my account at the moment so I can't check this right now, but quick question.
When a custom app domain is set (
customdomain.com
) will RAILWAY_PUBLIC_DOMAIN
change to that or will it always be the service domain like example.up.railway.app
6 replies
Can I specify the bun version to use?
What version of
bun
is Railway using right now?
I'm having a deployment issue due to bcrypt
:
Error: Cannot find module '/app/node_modules/bcrypt/lib/binding/napi-v3/bcrypt_lib.node'
The fix was released last week with v1.0.17:
https://github.com/oven-sh/bun/issues/4063#issuecomment-185137584817 replies
Shared variables not detected in Next.js app
Hi,
Does anyone know why two different Next.js apps I tried to deploy do not detect the shared variables shared to the environment being deployed?
I have two environments:
staging
and production
and I set shared variables in the project settings.
For each environment I pulled the shared variables to use as service variables.
Deployment kept failing because the env variables linked to the shared variables were undefined. If I explicitly set these with a value in the service variables instead of using shared, then it works.38 replies
Trying to understand pricing...
Is there a better way to understand pricing other than https://docs.railway.app/reference/pricing ?
I'm looking to host:
App 1 - production - postgres+server for Next.js
App 1 - dev environment - postgres+server for Next.js
App 2 - dev environment - postgres+server for Next.js/Node.js
I'm assuming prod/dev for one project do not share resources? Dev usage would be very low so not too concerned about that.
Is Postgres billed extra from app server?
4 replies