Skip to main content
Appentic runs on Feather and knows what a Feather app needs. When you add a web service from a repository that depends on feather-framework, Appentic sets up the database, key value store, background worker, migrations and health check in the same step. It builds the Dockerfile that feather new generates, unchanged, so the same app still deploys anywhere else. You pay for the machine plus a flat monthly fee per service. See pricing.

Before you start

  • The app is in a GitHub repository with the generated Dockerfile at its root (feather docker init adds one to an app without it).
  • Your migrations are committed. feather new writes the first one for you; feather security-check fails if migrations/versions is empty. Without a migration the release command has nothing to apply and the app starts against an empty database.
  • You have an Appentic account with credits.
Run the checks locally first:

Deploy

Create a project and choose a machine

In Appentic, create a project, open Resources and choose a machine. The smallest machine runs a Feather app, its worker, Postgres and Redis. A larger one gives each of them more memory.

Add a web service from the repository

On the project’s Services page, click Add next to Web Services and select the repository. The first time, connect GitHub and give the Appentic app access to it.

Keep the Feather setup

The new web service form recognises the app and shows Feather app, with every option on:The Release command is feather db upgrade and the Health check path is /health/ready. The project also gets SIGN_IN_RELAY_URL and SIGN_IN_RELAY_TOKEN, so an app with email sign-in can send its sign-in codes with nothing to set up.
Feather app options on the new web service form: Postgres database, key value store, background worker and SECRET_KEY, with the release command feather db upgrade and health check path /health/ready

The new web service form, with the Feather setup it filled in

Add your own variables

On the project’s Environment page, add anything else feather env check lists, such as GOOGLE_CLIENT_ID, GOOGLE_CLIENT_SECRET or RESEND_API_KEY.

Deploy

Click Deploy service. The service’s Events page shows the database and store being created, then the first deploy with its migrations, then the worker. A scaffolded app takes about three minutes from here.
Events list showing service created, Feather setup started with its sizes, deploy queued, build started, release command started and finished, deploy succeeded, worker created, Feather setup finished

Events from one deploy: setup, build, migrations, live, worker

Every push to the branch then builds, runs feather db upgrade and moves traffic to the new version once /health/ready answers. If a migration fails, the deploy stops and the running version keeps serving.

What you end up with

Four resources, connected to each other, from one form:
Project services page listing the web service, a Postgres database, a Redis key value store and a background worker running feather worker --fork, all running

The project after the setup: web service, Postgres, Redis and worker

They share one machine, and each holds the memory it was given plus the same share of CPU and disk. The sizes come from the machine you chose, so the whole setup fits the smallest one, and a bigger machine gives each part more:
Machine page showing RAM, CPU and disk bars split between the system, the web service, the worker, the database and the key value store

One 2 GB machine running the whole app

The database is backed up without any setup: continuously, plus a full backup each day, kept for 7 days. Restore to any point in that window, into a new database, and the original is untouched:
Backups tab showing continuous backup on, the daily backups list, a Back up now button and a restore form for a point in time

Point-in-time restore from the database's Backups tab

What Feather gets without configuration

Feather chooses the job, cache and storage backends from REDIS_URL and S3_BUCKET when the app doesn’t set them. Proxy headers need nothing either: Appentic forwards through one proxy, which matches Feather’s FEATHER_PROXY_FIX_NUM=1 default.

File uploads

A container’s files are replaced on every deploy. Add a storage service to the project and connect it to the web service and the worker: the S3_* variables select the s3 backend, and feather.storage.get_storage() uploads to the bucket. The app needs the s3 extra on its feather-framework[...] line in requirements.txt; apps created with storage already have it.

Scheduled tasks

Add a cron job that runs one of your @job functions once:
feather jobs run exits with a non-zero code when the job raises, so a failed run shows as failed in Appentic.

Your own domain

In the web service’s Settings, add the domain and create the DNS records it shows. Once the certificate is issued, Appentic adds the domain to TRUSTED_HOSTS and restarts the service. For Google sign-in, add https://your-domain/auth/google/callback to the OAuth client. Email sign-in codes work on the new domain straight away.

Without the setup

Everything above is an ordinary Appentic resource, so you can also set the app up by hand: a web service with the release command and health check path in Settings, a worker running feather worker --fork from the web service’s image, and a database and key value store connected to both.

Appentic Feather guide

The same setup from Appentic’s side.

Production checklist

What to confirm before real users arrive.