Because those variables should not exists and/or be injected into Dockerfile. But, just because they are mandatory, assets:precompile crashes with error. However, on practice, they are not used at all by assets compilation.
As well a bit similar situation is with say db:migrate, which may crash in envs w/o such vars (again some simple one-off containers w/o full env).
I guess any other type of solution may be ok (later "normal" run errors, log warnigns, etc), but not the crash of the rails app if env is missing. I mean no any other gem in my memory seems to have such behaviour.
Making
PASSKIT_...
variables mandatory makes Docker flow very strange:Because those variables should not exists and/or be injected into Dockerfile. But, just because they are mandatory,
assets:precompile
crashes with error. However, on practice, they are not used at all by assets compilation.As well a bit similar situation is with say
db:migrate
, which may crash in envs w/o such vars (again some simple one-off containers w/o full env).I guess any other type of solution may be ok (later "normal" run errors, log warnigns, etc), but not the crash of the rails app if env is missing. I mean no any other gem in my memory seems to have such behaviour.
Thanks.