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.

Read the docs: deploying your app

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.

Read the docs: deploy hooks and webhooks

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.

Read the docs: how builds work

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.

Read the docs: what happens during a redeploy

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.

Read the docs: branch deployments

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.

Read the docs: rolling back

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 deploy
The config wizard in the AppMecca dashboard, titled Create an appmecca.yaml, at its first step: What are you deploying? It offers a website with no server, an app with a server, both a frontend and a backend, or background work only.
Or let the dashboard write it: the config wizard asks what you are deploying, then a few more questions, and writes the file for you to commit. Screenshot of the AppMecca dashboard, showing demo data.

Good 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.

Read the docs: a service's command

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.

Read the docs: restoring a dump you upload

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.

Read the docs: downloading a backup