Skip to content
cloudhost
All posts
  • Builds
  • Apps
  • Functions
  • Security

Push your code, we run it

One push is enough. The platform finds the language and framework, builds it with no build file, works out the start command and the port, and deploys it, all inside Iran.

4 min readThe cloudhost team

One push, no configuration file#

You push the code of your app or function, and the platform does the rest. You do not write a build file, set up a server or say what the code runs on.

The platform reads the repository and finds the language and framework from their own files: package.json, requirements.txt or pyproject.toml, go.mod, Cargo.toml, composer.json, Gemfile, pom.xml and the rest. It then builds the project the way that framework expects, works out the start command and the port, and separates the processes: web for requests and worker for background jobs. Last, it deploys the new version.

Every deploy shows what it found: the files it decided from, the start command and the port. If the app does not start, you see right there which command ran and which port we waited on. Until then the previous version keeps answering.

Database migrations in Django, Rails and Laravel are found and shown, but they run only when you turn them on. If a migration fails, traffic stays on the previous version.

Wherever you want to decide yourself, one line in cloudhost.toml is enough. But you need no file to start.

Two names only: app and function#

On the platform you make only two kinds of thing:

NameWhat it isExamples
Appanything a visitor opens: a website, a frontend framework or a server frameworkNext.js, Astro, Nuxt, SvelteKit, a static site, Django, Laravel, Rails, Spring, Express
Functiona small piece of code that answers requestsan API route, a webhook, a scheduled job

Where and how each one runs is the platform's choice, not yours. A repository with both a frontend and a backend becomes two apps in one project from one push.

Functions in any language, by one rule#

You can write a function in JavaScript, TypeScript, Rust, Go or Python. The rule is the same for every language: the platform first tries the function on the edge, close to your visitors. Three things are tested at deploy:

  1. The build succeeds with every dependency from our servers.
  2. The function starts within the time the edge allows.
  3. One real request, through the same clients your code uses to reach out, gets an answer.

If the test passes, the function stays on the edge. If not, it runs on a dedicated runtime, and you see why on the deploy page, in the dashboard, the CLI and MCP: the build's error, the start time, or the request that got no answer. Either way you push the same way and nothing in your code changes.

A function that runs on a dedicated runtime today moves to the edge by itself once it passes the test, with nothing for you to do.

Apps: frontends on the edge, servers on their own#

Frontend frameworks such as Next.js, Astro, SvelteKit and Nuxt, and static sites, run on the edge. Static files and pages rendered on the server both come from an edge close to the visitor.

Server frameworks such as Django, Flask, FastAPI, Laravel, Rails, Spring, Express and NestJS each run on their own isolated runtime. With no requests they stop and cost nothing, and they start again on the first request.

Every build is checked#

The code you push and the packages it installs are checked before anything is deployed:

  • Every language's lock file is compared against known vulnerabilities, and a critical one stops the build.
  • Packages known to be malicious are not installed.
  • A version published less than three days ago is not installed by default, because most malicious packages are found within that time.
  • Packages' install scripts do not run.
  • The code is checked for secrets left in it and against malware rules.

The results are kept with each version and shown in the dashboard.

All inside Iran#

Builds, running code, the SQL database, the cache and storage are all on servers inside Iran. Packages are installed from our own servers inside Iran too, so a build never waits on an external service.

How to start#

With the CLI from your project's folder, or with a git push to our git address:

cd my-shop
cloudhost login
cloudhost init        # writes cloudhost.toml
cloudhost deploy      # detects the framework; built on our builder, nothing to install

Or connect your repository on GitHub or GitLab, and every push is built and deployed. The main branch goes to production and every other branch gets its own preview. Step by step in the docs.

Try it

Everything with one account.

Sign-up is by invite for now. If you have a code, create your account.

Sign up withEmail codeSMS code