Skip to content

Commit

Permalink
change how magento-scripts decides when MariaDB is ready for connection
Browse files Browse the repository at this point in the history
- should eliminate connection errors during creating magento database in some cases
  • Loading branch information
ejnshtein committed Aug 15, 2024
1 parent 3ec58cf commit 3c2474d
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ const waitForDatabaseInitialization = () => ({
const databaseOutput = await execAsyncSpawn(
`docker logs ${mariadb.name}`
)
if (databaseOutput.includes('ready for connections')) {
// we can't rely on ready for connections message because it's written 1 or 2 times depending if data is already there or not
// changed to rely on server socket created message
if (databaseOutput.includes('Server socket created on IP')) {
databaseReadyForConnections = true
break
} else if (databaseOutput.includes('Initializing database files')) {
Expand Down

0 comments on commit 3c2474d

Please sign in to comment.