1
0
Fork 0
mirror of synced 2024-06-10 23:04:45 +12:00

Add delay to wait for db before initialization

This commit is contained in:
kodumbeats 2021-07-16 10:35:46 -04:00
parent ce742b104e
commit 3c475e37a9

View file

@ -69,6 +69,9 @@ $http->on('start', function (Server $http) use ($payloadSize, $register) {
return $app;
});
// wait for database to be ready
sleep(5);
$dbForConsole = $app->getResource('dbForConsole'); /** @var Utopia\Database\Database $dbForConsole */
if(!$dbForConsole->exists()) {