Share development db with PR environments
hgupta18
HOBBYOP

2 months ago

As part of my PR review process, I use Railway's PR environments functionality. However, the db in the newly created PR environments is empty. I don't want to seed new data every time. I would like to use the db from my development environment for these newly created environrments.

Under Review

0 Threads mention this feature

1 Replies

mcky
PRO

2 months ago

I think if you look more generally at the problem, it's one of bootstrapping a preview environment (you're probably better exporting the dev db into a seed script than pulling it)

We have the same issue with wanting to run migrations as each preview db gets a clean slate. I might try setting a conditional build script that checks if it's a preview deploy and runs the migrations


Welcome!

Sign in to your Railway account to join the conversation.

Loading...