mirror of
https://github.com/appwrite/appwrite
synced 2026-05-10 02:31:01 +00:00
debug
This commit is contained in:
parent
1a6f23c3a1
commit
d06e41f81e
3 changed files with 6 additions and 7 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue