PowerSync Template Review

kobiebotha
TRIAL

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!


kobiebotha
TRIAL

2 years ago

No rush! On my way out too


2 years ago

im seeing
DATABASE_HOST=postgres.railway.internal
and
DATABASE_PORT=5432
on the powersync-nodejs-backend service, instead, on the postgres service set these variables
PGHOST_PRIVATE=${{RAILWAY_PRIVATE_DOMAIN}}
and
PGPORT_PRIVATE=${{RAILWAY_TCP_APPLICATION_PORT}}
and then reference those new variables on the powersync-nodejs-backend service


kobiebotha
TRIAL

2 years ago

when I edit the template and make those changes, the button at the bottom says Fork Template, that doesn't seem right

1187423583421616000


2 years ago

uhhh you made this template on your team didn't you


kobiebotha
TRIAL

2 years ago

yeah


2 years ago

that's bugged right now ๐Ÿ˜ฌ


kobiebotha
TRIAL

2 years ago

haha I feel you


kobiebotha
TRIAL

2 years ago

so fork and delete old one?


2 years ago

you can't delete it either I don't think


2 years ago

but try


kobiebotha
TRIAL

2 years ago

Yep can confirm


kobiebotha
TRIAL

2 years ago

1187424267420311600


2 years ago

welp, fix coming in 2024


2 years ago

the majority of the team is on vacation


kobiebotha
TRIAL

2 years ago

nice time of year to say that


kobiebotha
TRIAL

2 years ago

fix could be round the corner!


2 years ago

haha yeah not ideal, but there's not much I can do for bugs that don't affect users workloads


kobiebotha
TRIAL

2 years ago

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


kobiebotha
TRIAL

2 years ago

yeah


kobiebotha
TRIAL

2 years ago

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


kobiebotha
TRIAL

2 years ago

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!


kobiebotha
TRIAL

a year ago

@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?


kobiebotha
TRIAL

a year ago

(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!


kobiebotha
TRIAL

a year ago

are mongodb replicasets supported using the stock mongodb?


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


kobiebotha
TRIAL

a year ago

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" }]})'''

kobiebotha
TRIAL

a year ago

oh, you mean mongo doesn't make it easy on Railway


a year ago

never hardcode the host and port like you're doing there


kobiebotha
TRIAL

a year ago

yup!


a year ago

mongo doesn't make it easy even in a docker compose file lol