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
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
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
The command has documentation and there are docs for it on the website
can't find it on detail, can you provide me the link please?
CLI | Convex Developer Hub
The Convex command-line interface (CLI) is your interface for managing Convex
and about the dev deployment name is it this?
dev:astute-woodpecker-965
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 projectthank you a lot, I'm a bit lost
hoo I see
cool thans a lot
@e.do may just need to check if doing this will change the Ids
@jejunum when you use
import
the imported ids are unchanged