mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
debug
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user