app icon indicating copy to clipboard operation
app copied to clipboard

Use config environments

Open samdark opened this issue 4 years ago • 5 comments

We need to use config environments feature and have 2 default set of configs - dev (debug) and prod. Selecting one should be done through YII_ENV environmental variable (or .env).

Same should be applied to all templates and demo apps.

samdark avatar Jun 02 '21 13:06 samdark

See https://github.com/yiisoft/config/pull/64

samdark avatar Jun 02 '21 13:06 samdark

Also need environment "test"

vjik avatar Sep 22 '21 16:09 vjik

We should also get YII_ENV through getenv and not trough $_ENV since it's not populated by default. See https://mattallan.me/posts/how-php-environment-variables-actually-work/

samdark avatar Nov 04 '21 23:11 samdark

Looks like there is a problem with getenv and nginx fastcgi_param

BoShurik avatar Nov 05 '21 09:11 BoShurik

Yeah. May consider configuring it to fill getenv() or using https://github.com/symfony/dotenv.

samdark avatar Nov 05 '21 23:11 samdark