This commit is contained in:
shimon 2024-12-03 15:00:45 +02:00
parent 1a6f23c3a1
commit d06e41f81e
3 changed files with 6 additions and 7 deletions

View file

@ -207,8 +207,8 @@ function createAttribute(string $databaseId, string $collectionId, Document $att
$dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
}
var_dump('pushing to queue');
var_dump($db);
var_dump('**pushing to queue**');
$queueForDatabase
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
->setDatabase($db)

View file

@ -601,11 +601,6 @@ App::init()
$selfDomain = new Domain($request->getHostname());
$endDomain = new Domain((string)$origin);
var_dump('origin='.$origin);
var_dump('refDomain='.$refDomain);
Config::setParam(
'domainVerification',
($selfDomain->getRegisterable() === $endDomain->getRegisterable()) &&
@ -714,6 +709,9 @@ App::options()
*/
$host = $request->getHostname() ?? '';
$mainDomain = System::getEnv('_APP_DOMAIN', '');
var_dump('host='.$host);
var_dump('mainDomain='.$mainDomain);
var_dump('previewHostname='.$previewHostname);
// Only run Router when external domain
if ($host !== $mainDomain || !empty($previewHostname)) {
if (router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $queueForFunctions, $geodb, $isResourceBlocked, $previewHostname)) {

View file

@ -950,6 +950,7 @@ $register->set('pools', function () {
},
'redis' => function () use ($dsnHost, $dsnPort, $dsnPass) {
$redis = new Redis();
var_dump('RedisHost='.$dsnHost);
@$redis->pconnect($dsnHost, (int)$dsnPort);
if ($dsnPass) {
$redis->auth($dsnPass);