Переглянути джерело

:wrench: add APP_ENV support for v1 config.php

Jeremy Zheng 2 роки тому
батько
коміт
5c6dbf2563

+ 1 - 0
deploy/roles/mint-v2/templates/v1/config.php.j2

@@ -5,6 +5,7 @@ define("RPC_SERVER","{{ app_rpc_server}}");
 define("ASSETS_SERVER","{{ app_assets_server }}");
 define("DOCUMENTS_SERVER","{{ app_documents_server }}");
 define('APP_KEY','{{ app_secret_key }}');
+define('APP_ENV','{{ app_deploy_env }}');
 /*
 电子邮件设置
 PHPMailer

+ 1 - 1
deploy/roles/mint-v2/templates/v2/env.j2

@@ -3,7 +3,7 @@ CACHE_DIR="${BASE_DIR}/cache"
 TMP_DIR="${BASE_DIR}/tmp"
 
 APP_NAME="wikipali"
-APP_ENV=production
+APP_ENV={{ app_deploy_env }}
 APP_KEY={{ app_secret_key }}
 APP_DEBUG=false
 APP_URL="https://{{ app_domain }}"