mwargerM
Convex Community7mo ago
16 replies
mwarger

local deployment not working?

I'm trying to run npx convex dev --local and as far as I understand from here (https://docs.convex.dev/cli/local-deployments) this should start a local development environment on my machine (localhost) and allow me to run the backend locally. However, all I see in the console is a link to the dashboard at View the Convex dashboard at https://dashboard.convex.dev/d/my-dev-name-123 (which is the same as my existing cloud deployment). I guess I would expect to see the URL there be for localhost somehow. The env file it seems to create also just has a URL that is my existing cloud deployment - I expect I would want to see a localhost URL of some kind. Is this incorrect? Like others, I've made sure to be running node 18 to try this out.

As a side note - I'm also confused as to what the --once flag is for, considering it seems to immediately exit. Could someone clarify what the expected workflow is?

Am I missing something? Please let me know if there's some specific information I can provide.

Thank you!
Instead of syncing code to a Convex dev deployment hosted in the cloud, you can
Local Deployments for Development | Convex Developer Hub
Manage your Convex apps
Was this page helpful?