mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add delay to wait for db before initialization
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user