How do I share my dev deployment with my team?
@glucinater asks:
How do I share my dev deployment with my team?
6 Replies
On the dashboard, you can send a link to your dev deployment to your teammate and they should be able to view the dashboard for it.
might look something like this
My project uses a lot of imported data, is there a way to let them develop with my deployment or import my databases?
Currently it looks like their data base is empty
if you have a script or similar to import data, they can run the same script to set up the same data. Does that work for your situation?
If they set up their frontend to talk to your dev-deployment - for just frontend development, it should work.
We don't encourage having multiple people running
npx convex dev
at the same time pointing at the same deployment. It sounds nice, but you'll just end up clobbering each others' server functions.It’s relatively large and I’m already over my monthly bandwidth for my db. My teammates currently using my deployment since he’s doing frontend but I would like to figure out a way that lets him interact/test the backend
If he's just targeting the backend for development and not running
npx convex dev
then he can just set the .._CONVEX_URL
to the same value as in your .env.local
he won't be able to push functions though - that would require logging in as you. You might want to be collaborating around the "Prod" instance instead, so you can locally develop and he can work off of the last backend functions you pushed.
Nipunn mentioned a script to import data, which I find is really helpful for resetting state while debugging. having an internalMutation
as a default export in convex/init.ts
is the convention I use, so you can run npx convex run init
to seed the database.
As for moving your data to prod, I hear you, that's annoying. You can download a snapshot from the dashboard, but you'd have to re-import the data (using e.g. npx convex import
after removing the _id and _creationTime fields) and reconnect relationships. There's a couple articles on Stack about importing from other sources like AirTable that do some relationship re-stitching.
We want to make it easier to move data, and round-trip snapshot exports, but we aren't there yet