app: Fix "Failed to open sql connection" error
The app should wait for a moment even after TCP connection to the
database is available.
Rollback a part of ac0b706
.
This commit is contained in:
parent
75bb4944ac
commit
18c82ea9c6
@ -10,13 +10,15 @@ else
|
|||||||
echo SKIP
|
echo SKIP
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up"
|
|
||||||
echo "Wait until database is ready..."
|
echo "Wait until database is ready..."
|
||||||
until nc -z db $DB_PORT_5432_TCP_PORT
|
until nc -z db $DB_PORT_5432_TCP_PORT
|
||||||
do
|
do
|
||||||
sleep 1
|
sleep 1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
# Wait to avoid "panic: Failed to open sql connection pq: the database system is starting up"
|
||||||
|
sleep 1
|
||||||
|
|
||||||
echo "Starting platform"
|
echo "Starting platform"
|
||||||
cd /mattermost/bin
|
cd /mattermost/bin
|
||||||
./platform
|
./platform
|
||||||
|
Reference in New Issue
Block a user