Add delay to wait for db before initialization
This commit is contained in:
parent
ce742b104e
commit
3c475e37a9
1 changed files with 3 additions and 0 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Reference in a new issue