#I see the functions in the code but not in the dashboard

7 messages · Page 1 of 1 (latest)

untold geyser
#

I see the functions in the code but not in the dashboard. How do push to the dashboard?

silver duneBOT
#

Hi @untold geyser. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:

#

To push your functions to the Convex dashboard, you need to use the Convex CLI commands.

For development deployments, you can use the npx convex dev command. This command updates the functions continuously as you make changes to them.

For production deployments, you need to use the npx convex deploy command. This command registers your functions for production use.

Here is how you can use these commands:

npx convex dev

or

npx convex deploy

After running these commands, you should be able to see your functions under the "Functions" tab in the dashboard. If you still can't see your functions, make sure that the npx convex dev or npx convex deploy command has completed successfully (green checkmark).

For more information, you can refer to the Convex documentation (https://docs.convex.dev/dashboard/deployments/functions).

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:

#

@untold geyser kapa.ai is still learning and improving, please let us know how it did by reacting below

untold geyser
#

@silver dune it is not pushing all functions

silver duneBOT
#

Let me check the knowledge base for you. One moment! :books:

#

If not all functions are being pushed to the Convex dashboard, there could be a few reasons:

  1. Code not saved or compiled: Ensure that all your changes have been saved and your code has been compiled successfully before running the npx convex deploy command.

  2. Errors in the code: If there are any errors in your functions, they might not be deployed. Check your console for any error messages during the deployment process.

  3. Nested test files: If your test files are nested in a test folder, they might not be recognized by the Convex deployment process. As per a support thread (https://discord.com/channels/1019350475847499849/1238203057271996597), for now, you have to put all test files into the "top-level" convex/ folder.

  4. Workspace configuration: If you're using workspaces, as mentioned in the same support thread (https://discord.com/channels/1019350475847499849/1238203057271996597), it might cause issues with function deployment. You might need to adjust your workspace configuration or remove the vitest.workspace.ts file.

If you're still facing issues, it would be helpful to check the logs for any error messages or warnings. You can access the logs from the Convex dashboard.

Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: