George Bobby
George Bobby4w ago

Working with Team & Deploying

I am working on a team project using Convex and have a question regarding collaboration and syncing changes across team members' cloud development environments. Scenario: We have two developers: George and Alex. Both are using separate Convex cloud development environments and have .env.local automatically configured via npx convex dev in their respective Next.js projects. Each developer makes changes in their own development environment and tests locally. Once satisfied, Alex deployed the changes to production using npx convex deploy. Question: Now, George wants to get the latest Convex function changes (deployed by Alex) into his own Convex cloud development environment. Is there a supported way to: Pull Convex backend function changes from the production deployment (or another teammate’s deployment)? Or alternatively, sync a local Convex project with what’s currently deployed in production?
2 Replies
Convex Bot
Convex Bot4w ago
Thanks for posting in <#1088161997662724167>. Reminder: If you have a Convex Pro account, use the Convex Dashboard to file support tickets. - Provide context: What are you trying to achieve, what is the end-user interaction, what are you seeing? (full error message, command output, etc.) - Use search.convex.dev to search Docs, Stack, and Discord all at once. - Additionally, you can post your questions in the Convex Community's <#1228095053885476985> channel to receive a response from AI. - Avoid tagging staff unless specifically instructed. Thank you!
jamwt
jamwt4w ago
hi! collaboration on shared functions is done at the code level--i.e., using GitHub if George pulls from main, presumably they will get Alex's changes in most development workflows, since you typically push to github, run CI on a preview deployment from the Github branch, and merge main, possibly deploying to prod once the code is on main ergo in this scenario George will always get the lastest and greatest production codebase every time they pull main from GitHub

Did you find this page helpful?