Build and run

Environment variables and secrets

Set, list and remove variables, and keep secrets out of the chat.

Commands

  • Set a variable: deployinn env set my-app API_KEY=abc DEBUG=1
  • List the names: deployinn env ls my-app (values are never shown back)
  • Remove one: deployinn env rm my-app DEBUG (needs your approval)
  • From a file you name: --env-file path/to/file. A .env is never read automatically.
  • On deploy: --env KEY=value (repeatable).
  • A running app picks up a changed variable after the next deploy.

Secrets

If an AI app needs you to add an API key, it gives you a link to the project's settings page in the dashboard. Add the key there. PORT and DATABASE_URL are set by deployinn itself.