[edit] environment variables to use them in yaml config file

This commit is contained in:
Piou-piou
2019-10-19 20:05:02 +02:00
parent 023e0435b5
commit 1b3c1e772f
2 changed files with 7 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
parameters:
data_directory: '%kernel.project_dir%/data/'
ribs_cron_ip_external:
ribs_cron_ip_internal: "127.0.0.1"
ribs_cron_ip_external: '%env(IP_CRON_EXTERNAL)%'
ribs_cron_ip_internal: '%env(IP_CRON_INTERNAL)%'
ribs_cron:
# testCronCall: "* * * * *"
# testCronCall: '* * * * *'

View File

@@ -4,5 +4,9 @@
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"IP_CRON_EXTERNAL": "",
"IP_CRON_INTERNAL": "127.0.0.1"
}
}