mirror of
https://github.com/appwrite/appwrite
synced 2026-05-23 08:58:35 +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());
|
$dbForProject->purgeCachedCollection('database_' . $db->getInternalId() . '_collection_' . $relatedCollection->getInternalId());
|
||||||
}
|
}
|
||||||
|
|
||||||
var_dump('pushing to queue');
|
var_dump('**pushing to queue**');
|
||||||
var_dump($db);
|
|
||||||
$queueForDatabase
|
$queueForDatabase
|
||||||
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
|
->setType(DATABASE_TYPE_CREATE_ATTRIBUTE)
|
||||||
->setDatabase($db)
|
->setDatabase($db)
|
||||||
|
|
|
||||||
|
|
@ -601,11 +601,6 @@ App::init()
|
||||||
$selfDomain = new Domain($request->getHostname());
|
$selfDomain = new Domain($request->getHostname());
|
||||||
$endDomain = new Domain((string)$origin);
|
$endDomain = new Domain((string)$origin);
|
||||||
|
|
||||||
|
|
||||||
var_dump('origin='.$origin);
|
|
||||||
var_dump('refDomain='.$refDomain);
|
|
||||||
|
|
||||||
|
|
||||||
Config::setParam(
|
Config::setParam(
|
||||||
'domainVerification',
|
'domainVerification',
|
||||||
($selfDomain->getRegisterable() === $endDomain->getRegisterable()) &&
|
($selfDomain->getRegisterable() === $endDomain->getRegisterable()) &&
|
||||||
|
|
@ -714,6 +709,9 @@ App::options()
|
||||||
*/
|
*/
|
||||||
$host = $request->getHostname() ?? '';
|
$host = $request->getHostname() ?? '';
|
||||||
$mainDomain = System::getEnv('_APP_DOMAIN', '');
|
$mainDomain = System::getEnv('_APP_DOMAIN', '');
|
||||||
|
var_dump('host='.$host);
|
||||||
|
var_dump('mainDomain='.$mainDomain);
|
||||||
|
var_dump('previewHostname='.$previewHostname);
|
||||||
// Only run Router when external domain
|
// Only run Router when external domain
|
||||||
if ($host !== $mainDomain || !empty($previewHostname)) {
|
if ($host !== $mainDomain || !empty($previewHostname)) {
|
||||||
if (router($utopia, $dbForConsole, $getProjectDB, $swooleRequest, $request, $response, $queueForEvents, $queueForUsage, $queueForFunctions, $geodb, $isResourceBlocked, $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' => function () use ($dsnHost, $dsnPort, $dsnPass) {
|
||||||
$redis = new Redis();
|
$redis = new Redis();
|
||||||
|
var_dump('RedisHost='.$dsnHost);
|
||||||
@$redis->pconnect($dsnHost, (int)$dsnPort);
|
@$redis->pconnect($dsnHost, (int)$dsnPort);
|
||||||
if ($dsnPass) {
|
if ($dsnPass) {
|
||||||
$redis->auth($dsnPass);
|
$redis->auth($dsnPass);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue