Chad Maycumber
Chad Maycumber•2y ago

Database branches/Stages

This would be a great feature if it's possible! It's currently hard to create individual development environments for users or create "preview" deployments for testing because there's only two branches, production, and development
11 Replies
jamwt
jamwt•2y ago
makes sense. there's a lot of work behind the scenes right now on what we want to do to improve dev vs prod workflows and enable more flexibility. @Michal Srb has been working on that project.
ian
ian•2y ago
The one "staging" workaround I know of right now is to have another team member on your project that is a "staging" account, but that's still just one extra account getting overwritten, vs. preview deploys where you'd have possibly many versions you'd need to garbage collect
Indy
Indy•2y ago
Another possible workaround is to use a different project as staging. You'd have to do some manual work to swap around the convex.json which isn't super neat, but if staging is super important there is probably a way to hack together a script for this.
Chad Maycumber
Chad MaycumberOP•2y ago
Thanks for the feedback on the workarounds So will each team member get a development environment? Or should we do something where we don't commit the convex.json. And like Indy mentioned potentially swap those out I guess I'm a little worried if two developers are working on dev at the same time.
ian
ian•2y ago
Every member gets their own development environment
Chad Maycumber
Chad MaycumberOP•2y ago
Ahh amazing
ian
ian•2y ago
convex.json is fine to share between you, it only references the prod url the dev url is in .env.local which is usually in .gitignore so you have a shared prod environment you can both do convex deploy to, but convex dev will point at your own one
Chad Maycumber
Chad MaycumberOP•2y ago
Okay cool that makes sense. Thanks for the verification
Siraj
Siraj•15mo ago
Hello! Is there any latest updates on dev vs prod workflows? If there is a best practice for that then I'd love to use that, otherwise will go with workaround discussed here.
Michal Srb
Michal Srb•15mo ago
We're very close to releasing preview deployments, stay tuned just a little bit longer 🙂
ian
ian•15mo ago
@Chad Maycumber @Siraj it's out in Convex 1.5 https://news.convex.dev/announcing-convex-1-5/
Convex News
Announcing Convex 1.5
Convex 1.5 adds support for preview deployments, improvements to the Convex runtime, and more.

Did you find this page helpful?