Sign in to BitHut

Your projects, their status and secrets, and how to connect your AI.

Continue with Google Continue with GitHub Continue with email

If you are new, BitHut creates your account on the first sign-in.

New to BitHut? Already have an account?

Projects

Checks and the trial run

Every deploy goes through checks before the new version replaces the old one. This page explains what BitHut checks, how it reports what it found, and what happens when a version does not start.

The order of a deploy

A deploy goes through these steps, and the Versions tab shows how each one went:

  1. Read the code. BitHut reads the code before building it.
  2. Build. See How BitHut builds your code.
  3. Trial run. The new version starts once, and BitHut watches it.
  4. Measure. Only for a new project: does it fit your plan?
  5. Switch to the new version.

Reading the code

BitHut reads the code without running it and looks for typical mistakes. For example:

  • the code reads a key that is not saved in the project;
  • a site listens only on localhost, so visitors cannot reach it;
  • a database file or saved files are written outside /data, so they would be lost with the next version;
  • a key or password is written in the code itself;
  • the code expects a service on localhost, such as a database that runs on your computer;
  • a scheduled script never exits.

A missing key or a missing public build setting stops the deploy before the build: the project would not work without it. Other findings are warnings, and the deploy goes on.

How a finding reads

Each finding has three parts, in plain words:

  • Fact: what BitHut saw, and where in the code, for example the file and line.
  • Cause: why this breaks on BitHut.
  • Fix: one way to put it right.

Your AI reads the findings, changes the code and deploys again, usually without asking you. When only you know something, such as the value of a key, the finding says so, and your AI gives you a link to paste it in the cabinet. If a version did not start, its panel on the Versions tab has Copy task for your AI: all findings as one text to paste into your AI’s chat.

The trial run

The trial run checks that the new version really works:

  • A site must answer on its address within about a minute, without a server error.
  • A background process must start and keep running for about 25 seconds without restarting.
  • A scheduled script runs once and must finish without an error within 5 minutes. This is a real run of your script.

When the trial fails, BitHut reads the log of the run and turns known errors into findings: a missing package, a wrong key, out of memory, a port already in use, a bot that runs somewhere else too. For an error it does not know, it hands over the last lines of the log.

When the trial fails

The new version does not go online. If an earlier version worked, BitHut puts it back, and the step Switch to the new version shows “Skipped: the previous version keeps working”. Your project keeps running as before.

A new project and your plan

A new project is measured right after its trial run. If it needs more memory or disk than is free on your plan, BitHut stops it and says how much it uses, how much is free and which plan has room. Projects that already ran keep running. See Plans and billing.