Manage deployments

Read deploy status, deploy automatically on push, check before you deploy, find the failure point in logs, and roll back to a previous version.

Once your app is up, you need to see where it stands and be able to find the cause and undo it when something breaks.
This covers reading deploy status, wiring up automatic deploys, finding failure points in logs, and rolling back.

Reading deploy status

The deploy status shown in the app console and app list tells you whether the code is actually up. It's one of four values.

Deploy statusWhat it means
Not deployedNo successful deploy yet — the app exists but no code is running
DeployedSet automatically once the first deploy succeeds — the code is up and reachable
SuspendedTaken down — bringing it back redeploys the last successful deploy automatically
ArchivedAn archived app — it doesn't run until restored

A successful deploy doesn't make the app visible to others — who can see it is set separately in Visibility & access.

From the terminal, check it with the axhub command tool (CLI).

axhub deploy status --app demo            # latest deploy status
axhub deploy list --app demo              # deploy history
axhub deploy watch <deployment_id> --app demo   # watch until the deploy finishes
axhub deploy cancel <deployment_id> --app demo --execute   # stop a deploy in flight

If you're wondering what an individual progress code means, axhub deploy codes explains each value.

Taking an app down or archiving it is covered in Manage app state.

Deploying automatically on push

It depends on where the code lives. The app console's 저장소 (Repository) tab shows which one your app uses.

  • Apps on an Axhub repository — nothing to connect. The repository and automatic deploys are set up when the app is created. How to get the code and push is in Manage code in an Axhub repository.
  • Apps on GitHub — connect the AxHub GitHub App as below and you never have to write a workflow yourself.
axhub apps git connect --app <app> --repo owner/repo --branch main --execute
axhub apps git status --app <app>

After that, every new commit pushed to that repository tells AxHub to start a deploy. You have succeeded when a new deploy appears in the app console's 업데이트·공개 (Update & publish) tab after a push.

To run tests before deploying, declare them in axhub.yaml — they run before the build, and a failure stops the deploy.

axhub.yaml
ci:
  commands:
    - npm test

Check before you deploy

axhub deploy check finds problems that would make a deploy fail before you create one. It's read-only and changes nothing. Run it in the app folder that holds axhub.yaml.

axhub deploy check --app demo

Without --app it only looks at what your computer can see, and checks that need the app are reported as 참고 (Note).

What it checks

Check (code)What it looks atWhen it blocks
required_env_missingValues listed under env.required in axhub.yaml that the app doesn't have yet. Values AxHub injects, like PORT and DATABASE_URL, are left out. Names found in your .env or .env.local are pointed outRegister the values — Set environment variables. If they're in .env, axhub env set --app demo --from-dotenv .env --execute uploads them in one go
commit_not_on_remoteWhether the current commit is on the GitHub repository. GitHub apps onlyRun the suggested git push origin <branch>
uncommitted_changesWhether there are uncommitted changes. .env files are ignoredCommit and push. Don't commit .env — register it as environment variables
subdomain_not_configuredWhether a server app (docker · compose) has an addressSet the address — Address
challenge_deploy_lockedWhether this is a team app of a contest whose deploys are lockedWait until the organizers reopen deploys

Reading the result

Each line starts with a verdict. With --json it's the status value.

On screenstatusMeaning
통과 (Pass)passNo problem
막힘 (Blocked)failDeploying as-is would fail. If any line blocks, it ends with "배포 전에 맞출 것이 있어요." (something to fix before deploying) and exit code 9
확인 못 함 (Couldn't check)unknownCouldn't decide (permissions, network, …). Does not block the deploy
참고 (Note)infoNot checked because no app was given or it's the first deploy. Does not block

If axhub.yaml itself is invalid, it exits with code 64.

For AI agents, each item in the --json output carries handling.

handlingMeaning
autoCan be resolved without asking — commit · push, register a value already in .env
askNeeds a value only the user knows — a value not in .env, the app address
stopNeither the user nor the agent can resolve it. Change nothing, explain why, and stop — contest deploy lock

prevents holds the deploy failure code the item heads off (prepare.required_env_missing, resolve.commit_not_found, …). Causes per failure code are in Build apps that fit AXHub.

Reading the logs

When a deploy comes back failed, open the logs first. Click the failed deploy in the app console's 업데이트·공개 (Update & publish) tab, or use the terminal.

axhub deploy logs --app demo                  # recent logs
axhub deploy logs --app demo --follow         # follow in real time
axhub deploy logs --app demo --since 2026-08-08T09:00:00Z --limit 200

There's one thing to look for — which stage it stopped at. If it stopped during the build, where code is assembled into a runnable form, it's a build command or dependency problem; if the build finished but it died on startup, look at the start command, port, or environment variables; and if the build finished but the app never came up within 60 seconds, it's the health check wait time (Health check wait time). Copy the last red lines as they are — fixes by symptom are in When a deploy fails, and per-code actions in Health check failure codes.

When logs aren't enough, there are diagnostic commands.

axhub deploy doctor --app demo     # diagnose the app's deploy environment
axhub deploy diagnose demo         # diagnose the live state of the running app

Rolling back to a previous version

If a new version has problems, go back to a previously successful one — that's a rollback. In the app console, open 업데이트·공개 (Update & publish) → 업데이트 기록 (Update history) and click 이 버전으로 되돌리기 (Roll back to this version), or use the terminal.

1

Find the point to return to

axhub deploy releases --app demo shows the release history — note the ID of the deploy you want back.
2

Preview it

axhub deploy rollback --app demo --from-deployment <deployment_id> — it previews by default, so nothing has changed yet.
3

Run it

Add --execute to the same command and that version goes back up. Afterward, confirm with axhub deploy verify <deployment_id> --app demo.

A rollback reverts code only. Database schema changes already applied (destructive ones like dropping a column) do not come back — in that case the CLI asks you to confirm with --confirm-schema-skew. Before rolling back a deploy that changed the schema, check the impact on your data first.

Open the app's address and you should see the previous version. Fix the cause and deploy again to move forward.