Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -12,7 +12,7 @@ ini_set('display_errors', '0');
|
||||
ini_set('log_errors', '1');
|
||||
|
||||
// تحديد مسار اللوج بشكل ديناميكي (محلياً أو سيرفر)
|
||||
$logPath = '/home/intaleq-api/logs/php_errors.log';
|
||||
$logPath = '/home/siro-api/logs/php_errors.log';
|
||||
if (!file_exists(dirname($logPath)) || !is_writable(dirname($logPath))) {
|
||||
$logPath = __DIR__ . '/../logs/php_errors.log';
|
||||
}
|
||||
@@ -40,7 +40,7 @@ if ($vendorPath) require_once $vendorPath;
|
||||
require_once __DIR__ . '/helpers.php';
|
||||
|
||||
// تحديد مسار الـ .env بشكل ديناميكي
|
||||
$envFile = '/home/intaleq-api/env/.env';
|
||||
$envFile = '/home/siro-api/env/.env';
|
||||
if (!file_exists($envFile)) {
|
||||
$envFile = __DIR__ . '/../.env'; // مسار محلي افتراضي
|
||||
}
|
||||
@@ -57,7 +57,7 @@ try {
|
||||
|
||||
if ($redis->connect($redisHost, $redisPort, 1.5)) {
|
||||
if ($redisPass) $redis->auth($redisPass);
|
||||
$redis->setOption(Redis::OPT_PREFIX, 'intaleq:');
|
||||
$redis->setOption(Redis::OPT_PREFIX, 'siro:');
|
||||
} else {
|
||||
$redis = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user