Elia Light
Elia Lightβ€’2d ago

How to export files when migrating to production

Hi πŸ‘‹ , chefsπŸ‘©β€πŸ³ , I've been working on my project in development, and now I want to migrate to production, so I cloned my database using the command npx convex export --url **.convex.cloud --output dev-data.json and it worked well but my files were not exported, and that's the issue, how do I mgrate my development files to production Thanks for the support πŸ™
5 Replies
Convex Bot
Convex Botβ€’2d 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!
Sara
Saraβ€’2d ago
Hey there, you don't need to migrate anything, all you have to do is run npm convex deploy and it will deploy all the functions/files to your production instance, minus the data. It's actually recommended to keep both instance separated
Elia Light
Elia LightOPβ€’2d ago
Yeah, yo right but the deploy did not migrate data, what happened is i hosted my application with the development instance so i want to migrate with out losing customer's data. I posted in the Askai and it gave me this "npx export --include-file-storage --path dev.zip" i tried it and so far it has exported the data with the files so im now proceeding to import the data to production
Sara
Saraβ€’2d ago
Yep, that command should do the trick
Elia Light
Elia LightOPβ€’2d ago
it actually worked, ive succeded

Did you find this page helpful?