As I understand there is \Spryker\Shared\Config\Config::get method to access configuration stored in config/Shared dir. Does Spryker have anything similar to get values from deploy.*.yml files?
Getting app stack configuration in Spryker
165 Views Asked by erop At
1
If you declare variables in
deploy.*.ymlYou can use them to set ENV in docker sdkExample for passing env from deploy file to yves
Open file deploy.yml and add configuration
Then create twig for env in docker configuration.
docker/generator/src/templates/env/something/something.env.twigContent of file
Open yves twig for environment variables
docker/generator/src/templates/env/application/yves.env.twigAnd add include for template
Make sure to pass correct name to access twing template and serviceData later.
After that you can add env variable to config file (
config/Shared/config_*.php)