From repository to running app
Build from your Dockerfile, deploy any branch, and switch over only once the new version passes its health checks.
How your code goes live
Register a repository once. After that, a deploy is one command, one button or one call from your CI.
Deploy from Git or the dashboard
Register a GitHub or GitLab repository, and link your account if it is private. Then run mecca app deploy myapp, or press Deploy in the dashboard and watch each phase live.
Deploy on push or from CI
Add a webhook once, and a push to a running branch you have switched on rebuilds and redeploys it; a push doesn't start a branch that isn't running. Or give your CI a deploy hook: a secret URL it calls when it is ready.
Checked first, then built clean
When you register a repository, AppMecca checks that it can clone it, that your appmecca.yaml is valid and that your Dockerfiles exist, before you spend a build. Each build then starts from a fresh clone, with one image per container you declare.
Traffic moves once it's healthy
Each new version starts beside the old one. Declare a health check, and traffic moves only once the new version passes it; if it fails, your current version keeps serving.
Run branches side by side
Deploy main, dev and feature branches as separate deployments, each with its own URL, database and storage. A branch runs once you deploy it.
Roll back to a recent build
mecca app versions myapp lists your recent builds and marks the live one. Redeploy an earlier one by its tag, with no build to wait for.
A minimal appmecca.yaml
A web service, a background worker and a PostgreSQL database, in one file at the root of your repository.
containers:
- name: app
dockerfile: Dockerfile # built from your repository
deploy:
- name: web
container: app
port: 8000
replicas: 2 # two copies, each on its own host
health_check:
path: /health # a new version must pass this first
# No port, so no URL: a background worker
- name: worker
container: app
command: celery -A myapp worker
database:
enabled: true # PostgreSQL, created on the first deployGood to know
- Each build starts from a fresh clone, with no layer cache.
- Images are built for arm64 (AWS Graviton), so your base images need an arm64 version.
- Repositories come from GitHub or GitLab. Public Bitbucket repositories clone too, without account linking. Git servers you run yourself, such as self-managed GitLab, aren't supported.
- Rolling back is a CLI command: you redeploy an earlier build by its tag.
- Health checks are opt-in. Declare one for each service that serves traffic.
Moving an existing app
Your app stays a standard Docker container and your database stays standard PostgreSQL. Bring your Dockerfiles, upload a dump of your database, and deploy.
Coming from Heroku?
Give each Procfile process its own service in appmecca.yaml, backed by a Dockerfile you control. Bring your config across in one call with mecca var load myapp .env.
Bring your database
Upload a pg_dump of up to 5 GB from the CLI or the dashboard's Database tab. AppMecca takes a safety backup first, restores your dump and shows you a row count for each table.
Take your data with you
Back up on demand, then mecca app download gives you links to the bundle's files: a standard PostgreSQL dump, and an archive of each drive.
