1. Prepare Django settings
forkrail inspects manage.py to find your settings module and boots ASGI_APPLICATION (or falls back to WSGI_APPLICATION running 10 concurrent threads under a2wsgi). Make sure ALLOWED_HOSTS allows your .forkrail.com preview hostnames and custom domains:
import osfrom pathlib import PathBASE_DIR = Path(__file__).resolve().parent.parentSECRET_KEY = os.environ['DJANGO_SECRET_KEY']DEBUG = FalseALLOWED_HOSTS = [ '.forkrail.com', 'app.acme.dev',]STATIC_URL = '/static/'STATIC_ROOT = BASE_DIR / 'staticfiles'Whenever STATIC_ROOT is configured, forkrail runs collectstatic during the build and uploads the static files to S3 so the regional router serves STATIC_URL without invoking Python (including staticfiles.json for manifest storage).
2. Store secrets & deploy
printf 'django-insecure-replace-me' | forkrail env add portal DJANGO_SECRET_KEY --target productionprintf 'postgres://user:pass@db.internal:5432/portal' | forkrail env add portal DATABASE_URL --target productionforkrail deploy --prodSet "regions": ["iad1"] (or whichever AWS region holds your RDS instance) in vercel.json so database queries stay inside one region with millisecond latency.