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
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!
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 separatedYeah, 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
Yep, that command should do the trick
it actually worked, ive succeded