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 status | What it means |
|---|---|
| Not deployed | No successful deploy yet — the app exists but no code is running |
| Deployed | Set automatically once the first deploy succeeds — the code is up and reachable |
| Suspended | Taken down — bringing it back redeploys the last successful deploy automatically |
| Archived | An 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 flightIf 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.
ci:
commands:
- npm testCheck 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 demoWithout --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 at | When it blocks |
|---|---|---|
required_env_missing | Values 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 out | Register 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_remote | Whether the current commit is on the GitHub repository. GitHub apps only | Run the suggested git push origin <branch> |
uncommitted_changes | Whether there are uncommitted changes. .env files are ignored | Commit and push. Don't commit .env — register it as environment variables |
subdomain_not_configured | Whether a server app (docker · compose) has an address | Set the address — Address |
challenge_deploy_locked | Whether this is a team app of a contest whose deploys are locked | Wait until the organizers reopen deploys |
Reading the result
Each line starts with a verdict. With --json it's the status value.
| On screen | status | Meaning |
|---|---|---|
| 통과 (Pass) | pass | No problem |
| 막힘 (Blocked) | fail | Deploying as-is would fail. If any line blocks, it ends with "배포 전에 맞출 것이 있어요." (something to fix before deploying) and exit code 9 |
| 확인 못 함 (Couldn't check) | unknown | Couldn't decide (permissions, network, …). Does not block the deploy |
| 참고 (Note) | info | Not 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.
handling | Meaning |
|---|---|
auto | Can be resolved without asking — commit · push, register a value already in .env |
ask | Needs a value only the user knows — a value not in .env, the app address |
stop | Neither 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 200There'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 appRolling 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.
Find the point to return to
axhub deploy releases --app demo shows the release history — note the ID of the deploy you want back.Preview it
axhub deploy rollback --app demo --from-deployment <deployment_id> — it previews by default, so nothing has changed yet.Run it
--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.