#How to create dev deploy
3 messages · Page 1 of 1 (latest)
Your teammate can create his own dev deployment by running npx convex dev in the terminal from the project directory. This command will sync the codebase to his own dev deployment.
Here is the typical team development workflow on Convex:
- One team member creates a project by running
npx convex dev. - The team member creates a Git repository from the initial code and shares it with their team.
- Other team members pull the codebase, and get their own dev deployments by running
npx convex dev. - All team members can make backend changes and test them out with their individual dev deployments.
Remember, each developer on your team can set up their own personal development deployment. This allows everyone to work with their own schema and functions.
Also, it's important to note that environment variables are separate for each deployment. If you want to share certain environment variables, you can set default environment variables for a project that get synced to new preview deployments and new dev deployments.
For more details, you can refer to these sources:
- Typical team development workflow (https://docs.convex.dev/production#typical-team-development-workflow)
- Dashboard > Deployments (https://docs.convex.dev/dashboard/deployments/)
- Project Configuration > Local development (https://docs.convex.dev/production/project-configuration#local-development)
- Default environment variables (https://docs.convex.dev/production/environment-variables#project-environment-variable-defaults)
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
@vital bobcat kapa.ai is still learning and improving, please let us know how it did by reacting below