DylanDev
DylanDev6mo ago

npx convex deploy does not send my dev data including files to production

Why does running npx convex deploy not send over my tables from my dev instance and files to the production instance?
5 Replies
Convex Bot
Convex Bot6mo 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!
ian
ian6mo ago
They are separate deployments - this allows you to iterate and develop and change your data in dev without then blowing away data in prod when you deploy. If you want a one-time data transfer, you can do npx convex export from dev and npx convex import --prod with that same data
DylanDev
DylanDevOP6mo ago
Awesome thank you!
Satyam
Satyam2mo ago
If we have to shift to production permanently from the development instance, what is the process?
ian
ian2mo ago
export and import your data, export and import your env variables, update any env vars in your build process (e.g. NEXT_PUBLIC_CONVEX_URL or CONVEX_DEPLOYMENT_KEY) Not sure if there's anything else npx convex export/import npx convex env list/set @Satyam ^

Did you find this page helpful?