Repository navigation
I need a new server setting. Must every deployment set it? #599
|
My feature needs a new environment variable, such as a token for an outside service. Should a deployment refuse to start without it, and where do I declare and document it? |
Replies: 1 comment
|
Applies to: any version — this is how the project works by design. No. A deployment refuses to start only over settings it cannot work without at all. That list is closed:
The check is A new setting needs:
Do not read Vercel's own variables through More: https://github.com/lumenpearson/lessons/blob/main/docs/deploy.md#what-is-missing-is-said-at-the-door |
Applies to: any version — this is how the project works by design.
No. A deployment refuses to start only over settings it cannot work without at all. That list is closed:
DATABASE_URLandBOT_TOKEN;WEBHOOK_SECRET, onceBOT_TOKENis set;RUN_BOTthat is notfalse;OWNER_IDSorTIMEZONEset to a value that cannot be used;LESSONS_TARGETthat names no target or is set on Vercel.The check is
Settings.deployment_problems()inserver/app/config.py. It lists every problem at once. It applies whenVERCELis set orLESSONS_TARGETis set at all. It does not check a docker-compose deployment fromserver/Dockerfile. Do not add an optional setting to it.A new setting needs:
Sett…