Why Your Cloudvea Deploy Keeps Failing (And How to Fix It)
Most failed deploys on Cloudvea come down to the same handful of avoidable mistakes: a missing start command, the wrong output directory, or a dev-only script in production. Here's how to get it right the first time.
Pushing a project to Cloudvea should take a few clicks. But if you've hit a red "Failed" badge and scrolled through build logs wondering what went wrong, you're not alone. The same mistakes show up again and again, and most of them are fixed in under two minutes once you know what to look for.
This guide walks through the most common causes of a failed deploy, what the error messages actually mean, and exactly how to fix each one.
1. Your start command is missing or wrong#
This is the most frequent cause of failed deploys for backend projects. Cloudvea needs to know how to start your app after it finishes building. If the start command is empty, or points to a script that doesn't exist in your package.json, the deploy fails before the app ever runs.
What to check:
For Node.js projects, your package.json must have a start script that runs a production process, not a dev watcher:
{
"scripts": {
"start": "node dist/index.js"
}
}What not to do:
{
"scripts": {
"start": "nodemon src/index.ts"
}
}Cloudvea will warn you if it spots a dev command (nodemon, ts-node-dev, --watch, next dev, runserver), but it won't stop you. The app will likely crash on startup anyway because dev tools aren't installed in the production image.
For Python apps, you need an explicit start command like:
gunicorn app:app --bind 0.0.0.0:$PORTor for FastAPI:
uvicorn main:app --host 0.0.0.0 --port $PORTCloudvea detects which server you're using, but if gunicorn or uvicorn aren't in your requirements.txt, you'll get a warning before the build even runs.
See the docs: Deployments
2. The output directory doesn't match what your build produces#
For frontend frameworks (React via Vite, Vue, Angular, Create React App) the build writes its files to a folder. If Cloudvea looks in the wrong folder, it fails with:
The build finished, but the output directory "dist" was not created.Cloudvea tries to read the output folder from your config (vite.config.ts, angular.json, the BUILD_PATH env var for CRA). When it can't, usually because the path is computed dynamically in code, it guesses and shows an OUTPUT_GUESSED warning.
Fix it: Open your project's build settings, find Output directory, and set it to exactly what your build command writes. Common values:
| Framework | Default output folder |
|---|---|
| Vite (React, Vue) | dist |
| Create React App | build |
| Angular | dist/<project-name>/browser |
| Next.js | .next |
| Laravel | public |
If you've customized it in your build config, check there first. The output folder must contain an index.html for static sites, or the deploy will also fail.
See the docs: Framework detection
3. The framework Cloudvea detected isn't the one that runs your app#
Cloudvea scores every file in your archive and picks the highest-confidence match. Usually this is correct. But if you have an Express server with a Vite frontend in the same package.json, it might not be obvious which one "wins."
When the top two matches are within 10 points of each other, Cloudvea marks the detection as ambiguous and asks you to confirm the framework before deploying. If you skip past that confirmation or deploy via the API without setting the framework explicitly, you'll get a 422 with needs_configuration.
Fix it: In the project wizard or the Build settings page, make sure the framework field matches the thing that actually runs your app, not the build tool that compiles it. An Express server with a React frontend is an Express project, not a React project.
If your project structure genuinely confuses the detector, the most reliable path is a custom Dockerfile. Cloudvea builds and runs it as written.
4. A required script is missing from package.json#
If your build or start command calls a script like npm run build or pnpm run start:prod, that script has to exist in package.json. Cloudvea checks this before queuing the build, so you won't waste build minutes on something guaranteed to fail.
The error looks like:
The start command runs "start:prod", but package.json has no "start:prod" script.Fix it: Either add the missing script to package.json, or update the command in Cloudvea's build settings to match what you actually have.
5. The wrong root directory is set#
If you uploaded a ZIP that has your app inside a subfolder (e.g. my-project/frontend/), Cloudvea needs to know where the actual app lives. Set the Root directory field in build settings to that subfolder.
If you set a root directory that doesn't exist in the archive, you'll see:
The root directory "apps/web" is not in the source.For monorepos, Cloudvea detects apps up to two levels deep and lists them. It will not guess. Upload an archive containing only the app you want to deploy, or set the root directory to the subfolder.
See the docs: Framework detection
6. The runtime version isn't available#
If your package.json says "node": "21" in the engines field, Cloudvea will tell you Node 21 isn't available and adjust to the nearest supported version: currently 18, 20, 22, or 24. The same applies to Python (3.9 to 3.13), PHP (8.2 to 8.4), Go (1.21 to 1.25), and .NET (8.0, 9.0, 10.0).
Cloudvea shows a RUNTIME_ADJUSTED warning when it does this. If you need a specific version, set the Runtime version field in build settings to one that's on the list. If the version you pick isn't available, the deploy is refused before anything builds.
7. Environment variables aren't set#
A common failure that shows up at startup, not at build time: your app boots fine locally because it reads from a .env file, but that file isn't deployed to Cloudvea.
What not to do: Upload your .env file inside the ZIP. Cloudvea warns you if it finds one, and it won't be used at runtime anyway.
What to do: Add every variable your app needs in the project's Environment tab before deploying. Variables can be scoped to build, runtime, or both. Secrets are encrypted at rest and masked in logs.
See the docs: Environment variables
8. Your app doesn't listen on $PORT#
Cloudvea assigns a port at runtime via the PORT environment variable. If your app ignores it and listens on 3000 hardcoded, the health check will fail because Cloudvea can't verify the app is running.
The health check calls GET / (or whatever path you've set) and expects any HTTP response below 500 three consecutive times. If it doesn't get that within the timeout (60 seconds for most profiles, 120 seconds for Nano), the deploy fails and your live version is untouched.
Fix it: Read PORT from the environment in your app:
// Node
const port = process.env.PORT || 3000;
app.listen(port, '0.0.0.0');# Python
port = int(os.environ.get("PORT", 8000))// Go
port := os.Getenv("PORT")
if port == "" { port = "8080" }
http.ListenAndServe("0.0.0.0:" + port, nil)9. You're using a framework Cloudvea doesn't support yet#
Cloudvea recognises Nuxt, SvelteKit, Remix, React Router (framework mode), Astro, Gatsby, Qwik City, SolidStart, Analog, and RedwoodJS and tells you clearly that they're not supported rather than attempting a broken build. It also recognises Ruby, Java/Kotlin, Rust, Elixir, Deno, Dart, and Swift.
For any of these, the only path today is a custom Dockerfile. Write a Dockerfile that builds your app and starts it listening on $PORT, set the framework to Dockerfile in Cloudvea, and it will be built and run as written.
10. Deployment for a fresh project: order matters#
If you create a project and deploy before adding environment variables, the deploy might succeed but the app crashes on startup because it can't read required config. The build itself passes; missing env vars only surface at runtime.
Better order:
- Create the project
- Set environment variables in the Environment tab
- Upload your source or push to your connected GitHub branch
- Deploy
A quick diagnostic checklist#
Before deploying, run through this list:
-
startscript inpackage.jsonruns a production process (nonodemon, no--watch) - App listens on
process.env.PORT(or$PORT), not a hardcoded port - Output directory matches what the build command actually writes
- Framework in Cloudvea's build settings matches the thing that runs the app
- All required env vars are added in the Environment tab, no
.envfile in the ZIP -
gunicorn/uvicorn(Python) or the right server library is in your dependencies - Runtime version is set to one that's available, or left empty to use the default
If a deploy fails, the first thing to check is the build log. Cloudvea shows the exact command that failed, the exit code, and the last lines of output. For startup failures, the runtime log shows what the app printed before it crashed.
Fixing a failed deploy is almost always a matter of correcting one setting. The error messages are intentionally specific: if you see the name of a folder, a script, or a command in the error, that's exactly the thing to fix.
For anything that isn't covered here, open a support ticket from your dashboard and include the deployment ID from the URL. It's the fastest way to get help.