RicardoGEsteves
RicardoGEsteves7mo ago

deployment/prod environment doesn't replicate dev data

I deployed my app on vercel, configured all prod environments with convex, clerk etc.. but on production I don't have any data from dev. It should be replicated I guess or I thought. can someone help me with this?
10 Replies
lee
lee7mo ago
This isn't automatic, because your dev environment probably includes test data that you don't want in prod, and you can iterate on schema changes in dev. You can copy the data with npx convex export and then npx convex import --prod . both commands have flags to customize behavior, which you can see with --help
RicardoGEsteves
RicardoGEstevesOP7mo ago
ho ok, I see. Will try that than. thank you @lee @lee I using this command: pnpm dlx convex export --deployment-name dev --include-file-storage but it require a path sorry but I'm not understanding how this works can you help me with this? don't you have a guide on you docs or convex stack? do I need to do something like this? pnpm dlx convex export --deployment-name dev --include-file-storage --path <zipFilePath> I've done this: pnpm dlx convex export --path ./data/convexExportedDevData.zip --include-file -storage --deployment-name dev
Michal Srb
Michal Srb7mo ago
The command has documentation and there are docs for it on the website
RicardoGEsteves
RicardoGEstevesOP7mo ago
can't find it on detail, can you provide me the link please?
Michal Srb
Michal Srb7mo ago
CLI | Convex Developer Hub
The Convex command-line interface (CLI) is your interface for managing Convex
RicardoGEsteves
RicardoGEstevesOP7mo ago
and about the dev deployment name is it this? dev:astute-woodpecker-965
Michal Srb
Michal Srb7mo ago
Yeah, just astute-woodpecker-965 But you don't need to specify that unless you're trying to use someone else's dev deployment in the same project
RicardoGEsteves
RicardoGEstevesOP7mo ago
thank you a lot, I'm a bit lost hoo I see cool thans a lot
jejunum
jejunum7mo ago
@e.do may just need to check if doing this will change the Ids
erquhart
erquhart7mo ago
@jejunum when you use import the imported ids are unchanged

Did you find this page helpful?