Parcourir la source

debug配置化

shish il y a 6 ans
Parent
commit
02268cdf66
1 fichiers modifiés avec 2 ajouts et 2 suppressions
  1. 2 2
      common/config/main-local.php

+ 2 - 2
common/config/main-local.php

@@ -4,11 +4,11 @@ $config = [
 	'modules' => [
 		'debug' => [
 			'class' => 'yii\debug\Module',
-			'allowedIPs' => [getenv('DEBUG_ALLOWED_IP')],
+			'allowedIPs' => [getenv('DEBUG_ALLOWED_IP','127.0.0.1')],
 		],
 		'gii' => [
 			'class' => 'yii\gii\Module',
-			'allowedIPs' => [getenv('GII_ALLOWED_IP')],
+			'allowedIPs' => [getenv('GII_ALLOWED_IP','127.0.0.1')],
 		],
 	],