pulgueta_
pulgueta_7d ago

Deploy to Convex self-host

I'm trying to self-host Convex on Railway and want to deploy to my different environments. I read the docs to run the script with Vercel but it throws an error:
✖ Error fetching POST https://api.convex.dev/api/deployment/url_for_key 400 Bad Request: InvalidDeploymentName: Couldn't parse deployment name railway
Error: Command "bunx convex deploy --cmd 'bun run build'" exited with 1
✖ Error fetching POST https://api.convex.dev/api/deployment/url_for_key 400 Bad Request: InvalidDeploymentName: Couldn't parse deployment name railway
Error: Command "bunx convex deploy --cmd 'bun run build'" exited with 1
For the record: it failed with both bunx and npx. I've set the following env variables: * CONVEX_URL: The URL from the "Convex Backend" resource * CONVEX_SELF_HOSTED_URL: Same URL as above * CONVEX_SELF_HOSTED_ADMIN_KEY: The key printed when you check the logs, in this case starts like railway|randomvalues * CONVEX_DEPLOY_KEY: Same key as above Is there something I'm missing? Thanks
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?