Deployment guide

Use AI to turn a local project into a live app

From project prep and framework detection to browser auth, builds, go-live, and failure recovery — the full PocketBay AI-native deploy flow.

Deploy prompt
请将当前项目部署到 PocketBay,部署手册:https://pocketbay.com/deploy

Pre-deploy checklist

  • This is a monolithic web project that serves HTTP or static files.
  • Node.js projects have a parseable package.json; Python projects have a dependency manifest and web entry.
  • Dynamic apps must listen on the PORT env var and bind to 0.0.0.0.
  • If using a Dockerfile, the container must start a web service that passes health checks.
  • Use a managed PostgreSQL database (provisioned or migrated during AI deploy) or an external connection string when needed. Redis and other engines are not hosted yet.

Full flow

STEP 1

Prepare a runnable web project

The project should be static, nextjs, node, python, or dockerfile, with a clear entry file or build output.

STEP 2

Send the deploy prompt to AI

AI reads project files locally, determines framework_hint, and fetches PocketBay's Agent Markdown manual.

STEP 3

Open the pairing link to confirm

After AI creates a one-time session, it must show you the full auth link; log in to PocketBay and confirm project name and deploy type.

STEP 4

AI packages and uploads

Upload excludes node_modules, .git, .next, virtual envs, and cache dirs to reduce size and leak risk.

STEP 5

Platform generates a build plan

PocketBay analyzes versions, lockfiles, package managers, start commands, and env vars, then runs a constrained build and health check.

STEP 6

Go live or fix from errors

On success you get a pocketbay.app subdomain; on failure AI can read error_category, repair_hint, and logs, fix source, and re-upload.

How deploy type is determined

TypeTypical projectKey requirements
staticHTML, CSS, JS, or pre-built static outputIncludes index.html; served directly by the gateway
nextjsNext.js project with next in dependenciesHas build/start scripts; public vars use NEXT_PUBLIC_
nodeExpress, Hono, Koa, and other Node web servicesHas a start command and listens on PORT
pythonFastAPI, Flask, Django, and other web servicesHas a dependency manifest and recognizable entry
dockerfileCustom single-container web appDockerfile at project root

What happens when deploy fails

PocketBay does not promise every project builds on the first try. The platform returns structured error categories, log tails, and repair hints; AI can fix source and redeploy after informing you. Common issues: runtime version too high, missing start command, dependency install failure, wrong port, and build timeout.

The full machine execution steps always follow the Agent Markdown manual.

Start shipping

Let PocketBay handle the last mile

Send the deployment prompt to your AI coding agent, approve once, and let it package, upload, build, and return a live URL.