How to prepare an application

  1. Host. The process must listen on 0.0.0.0, not only on localhost or 127.0.0.1.
  2. Port. Bind the PORT variable. Do not assume 3000, 8000, or 8080. If you omit PORT, Dynaminicron sets it to the service HTTP port.
  3. Environment. Each runtime variable is NAME=VALUE, one per line.
  4. Secrets. Do not put passwords, tokens, or keys in the repository. Do not upload .env or .env.local.
  5. 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.
  6. 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.
  7. 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.

Application contract