Factordocs
You’re seeing Factory documentation.Machines that stay up between runs. Sandboxes instead

Deploying from GitHub

A push redeploys a factory.

Connect a repository to a factory, and pushing redeploys it. Nothing to run in CI, and no credentials of yours to store anywhere.

Setting it up

Install the GitHub App

In the dashboard, open GitHub and press Install the app on GitHub. Choose the repositories it may read — it only ever needs read access to contents.

Deploy the factory

factor deploy

Connect the repository

Open the factory's page in the dashboard and press Connect Repository. Search for the repository, pick the branch, and choose when to deploy.

When it deploys

Two choices, set when you connect and changeable afterwards under Settings on the factory's page.

On [factor deploy] in the messageOnly a push whose commit message contains that marker. The default, and the right one for a branch you push to often.
On every pushAny push to the branch, whatever the message says.
git commit -m "faster tokenizer [factor deploy]"git push

What a deploy does

The commit is fetched, the manifest is read from the repository, and the factory is redeployed from it — same machine, same disk. Every attempt is recorded under Deployments, including the ones that were skipped and why.

Disconnecting

Settings → Disconnect this repository on the factory's page. The factory keeps running; only the connection goes, along with its deployment history.

If a push does not deploy

  • Is the marker in the message? With the default trigger, a push without [factor deploy] is recorded as skipped rather than ignored — look under Deployments and it will say so.
  • Is it the right branch? The connection names one.
  • Was the app uninstalled? The connection says so on the GitHub page, and deployments stop until it is reinstalled.