From 4168320ab97bbadef4b3646624572e9fd6061385 Mon Sep 17 00:00:00 2001 From: Florian PARRENO Date: Wed, 17 Jul 2024 09:22:48 +0200 Subject: [PATCH] Use APP_ENV variable to enable enduser to make command more flexible --- Resources/views/template.txt.twig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resources/views/template.txt.twig b/Resources/views/template.txt.twig index 9e3f9fe..51d8d60 100644 --- a/Resources/views/template.txt.twig +++ b/Resources/views/template.txt.twig @@ -4,6 +4,6 @@ MAILTO="{{ mailto }}" {% for cron in crons %} # {{ cron.name }} -{{ cron.expression }} {{ user }} {{ php_version }} {{ absolute_path }} {{ cron.command }} --env={{ env }} +{{ cron.expression }} {{ user }} APP_ENV={{ env }} {{ php_version }} {{ absolute_path }} {{ cron.command }} {% endfor %}