Import data on prod
I want to import documents from local to prod, how can i do that? I am not able to setup convex for prod
22 Replies
hey! yep, you can use import/export to do this. see these docs: https://docs.convex.dev/database/import-export/import
Importing Data Snapshots | Convex Developer Hub
Import data into Convex
I am not able to setup for prod
Whats the step to use prod?
@jamwt ?
npx convex deploy
will push the current dev deployment codebase into prod
then you can log into your dashboard and switch to "production" to see that deploymentCLI | Convex Developer Hub
The Convex command-line interface (CLI) is your interface for managing Convex
npx convex import
supports a --prod
flag as you can see hereso that you can import your tables in the production deployment
gotcha thanks
and to use prod table data do i need to do something?
@jamwt
The
CONVEX_URL
variable controls which deployment your frontend accessesYou'll want to check out the hosting and deployment guide to get going in production: https://docs.convex.dev/production/hosting/
Hosting and Deployment | Convex Developer Hub
Share your Convex backend and web app with the world.
I mean I want to test the prod data locally on my fe
Ah gotcha - yeah just update the environment variable
From where should I get the prod url?
It's in your dashboard, project settings
Generate product deploy key?
hmm actually no it's not there
it's a template
uses your project slug, finding the doc
how?
settings, under URL and Deploy Key
what I'm seeing in the docs isn't matching what's in the dashboard
oh, not project settings
go to the project, and then hit Settings on the bottom of the left nav

ohh got it
make sure you're in the production environment, not dev
yeah