2 years ago
I'm still tweaking the branding, the Deploy button etc, but <@539512869780455445> could you eyeball the meat of this and let me know if anything looks off?
0 Replies
2 years ago
currently out Christmas shopping for the day so I'll look at it when I'm back home!
2 years ago
im seeingDATABASE_HOST=postgres.railway.internal
andDATABASE_PORT=5432
on the powersync-nodejs-backend
service, instead, on the postgres service set these variables PGHOST_PRIVATE=${{RAILWAY_PRIVATE_DOMAIN}}
andPGPORT_PRIVATE=${{RAILWAY_TCP_APPLICATION_PORT}}
and then reference those new variables on the powersync-nodejs-backend
service
when I edit the template and make those changes, the button at the bottom says Fork Template
, that doesn't seem right
2 years ago
uhhh you made this template on your team didn't you
2 years ago
that's bugged right now ๐ฌ
2 years ago
you can't delete it either I don't think
2 years ago
but try
2 years ago
welp, fix coming in 2024
2 years ago
the majority of the team is on vacation
2 years ago
haha yeah not ideal, but there's not much I can do for bugs that don't affect users workloads
yep sameโฆ all good, worst case if a developer uses it, I can help them update these vars in their deployed project
2 years ago
I mean it would still work just fine
I was able to update the description a bit to include some more info on what the template does, so there's that. Anyway, appreciate all the help thus far and happy holidays ๐
2 years ago
no problem, always happy to help when templates are involved
2 years ago
and happy holidays to you too
Thanks!
p.s. The Deploy button totally fits into the color scheme of our docs https://docs.powersync.com/integration-guides/railway-+-powersync
2 years ago
I noticed, it looks great!
@Brody Weโre gearing up to release our Open Edition by the end of May which will let customers run full-stack Postgres+PowerSync+Backend on Railway and I want to get your input on our updated Template since it seems we've had nonzero downloads of the previous one. Can I still msg you here when it's ready for a review?
(previous Template was Postgres + Backend connected to hosted PowerSync, the update will make it fully self-hosted on Railway with no external deps)
a year ago
absolutely!
a year ago
they do not, it's something you'd have to setup yourself, and I've heard mongo does not make it easy
I have a docker-compose config that sets it up, might give it a whirl
entrypoint:
- bash
- -c
- 'sleep 10 && mongosh --host mongo:27017 --eval ''rs.initiate({_id: "rs0", version: 1, members: [{ _id: 0, host : "mongo:27017" }]})'''
a year ago
never hardcode the host and port like you're doing there
a year ago
mongo doesn't make it easy even in a docker compose file lol