#✅ Dev Database

1 messages · Page 1 of 1 (latest)

leaden rain
#

Hello Directus-Discord! I'm wondering what is the best way to share a dev-database between the team? We're using postgres. Thanks!

nova tulipBOT
#

Thanks for posting! This is a community powered server, so you may or may not get an answer based on available help and expertise. To increase your chances of somebody being able to help you, please help us help you making sure you:

  • Adding an explanation of exactly what you're trying to achieve.
  • Adding any and all related code or previous attempts.
  • Describing the exact issue or error you are facing.
  • Posting any screenshots if applicable.
  • Reading through https://stackoverflow.com/help/how-to-ask.

When you're done with this thread, please close it. Thanks! ✨

(If you have a support agreement and need help, please contact the core team via email.)

tropic flare
#

Host it online and make sure everyone has access credentials

#

That’s really the only sound way imo

leaden rain
#

Thanks for the reply!

nova tulipBOT
#

✅ Dev Database

nova tulipBOT
leaden rain
#

Edit: And for taking the dev db on production i just export everything and migrate the schema? Or can I just take a db dump live?

lilac brook
#

The "best" way to manage schema changes are through usual database migrations and Directus has a way to run those for you. IMHO there's still room for improvement here because it also means not being able to use Directus itself to manage the schema changes.

#

Then you can apply a Directus schema snapshot to get the UI settings up on the new environment

#

Id love to know if there's a better way to manage this btw. I have a heavily opinionated way on how this is supposed to work without compromising DX, but I'm not sure if Directus already have everything needed to implement it.

leaden rain
#

Thanks a lot!