visuddhinanda 2 лет назад
Родитель
Сommit
c64e57d776
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      public/app/redis/function.php

+ 1 - 1
public/app/redis/function.php

@@ -3,7 +3,7 @@ require_once __DIR__."/../config.php";
 function redis_connect()
 {
 	try {
-        $server = gethostname();
+        $server = $_SERVER['SERVER_NAME'];
         if(strpos($server,'wikipali') === false){
             //local dev
             $redis = new redis();