Debug Production
Hello, I have run into a situation where a user has a problem / bug in production environment. Is there a way to copy production environment into development?
what would be the best way to login as this user and to simulate his connection?
7 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!
I think you can start locally with --prod
start frontend? or what do you mean
you can change the env
to point to the production env
i see thanks
You can copy data between environments with https://docs.convex.dev/database/backup-restore
You can as jamal suggests deploy directly to prod, or have your local dev frontend talk to the prod frontend
Just checking you're aware that you can see logs and data from prod by switching to the prod environment in the dashboard
what would be the best way to login as this user and to simulate his connection?You can run functions as an arbitrary user in the function runner, but if you want an "imitate user" experience for your website you'll have to build it, it depends on your application
Is there a way to copy production environment into development?I'm curious why you want to do this, because you can investigate prod with all the same tools as dev — but if you want a data snapshot that makes sense
yes thanks i will investigate with --prod