How to prepare an application
- Host. The process must listen on 0.0.0.0, not only on localhost or 127.0.0.1.
- Port. Bind the PORT variable. Do not assume 3000, 8000, or 8080. If you omit PORT, Dynaminicron sets it to the service HTTP port.
- Environment. Each runtime variable is NAME=VALUE, one per line.
- Secrets. Do not put passwords, tokens, or keys in the repository. Do not upload .env or .env.local.
- Database. A custom app that needs an external database supplies that URL, often DATABASE_URL. Dynaminicron does not assume PostgreSQL and does not provision it. WordPress is the exception: Starter and Pro include the database.
- Files. Anything that must survive — images, documents, uploads — goes under /data. The root filesystem is read-only. Take a one-click backup when you need a copy.
- Build versus runtime. GitHub and folder deploys build an image. Build-time values can be baked in. Runtime environment is injected into the container. Secrets belong there.
DATABASE_URL=postgresql://... ADMIN_USERNAME=... SESSION_SECRET=...
Example names, not a required set. Wrong: pasting a URL without the variable name.
A process starting, or a “Ready” line in the runtime logs, is not a finished deploy. For an app or API, the deploy stays in progress until the process answers HTTP on PORT.