]> git.parisson.com Git - mezzo.git/commitdiff
Use wait-for-it
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 20 Nov 2018 12:12:52 +0000 (13:12 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 20 Nov 2018 12:12:52 +0000 (13:12 +0100)
app/bin/wait.sh
env/dev.env
lib/mezzanine

index b1f392c6f122b2b49d9fd924f66f0a595433ccd3..e9331381613728915c231a16fc5aa241299e8888 100755 (executable)
@@ -1,15 +1,3 @@
 #!/bin/sh
 
-set -e
-
-port=$(env | grep POSTGRES_PORT | cut -d = -f 2)
-
-echo -n "waiting for TCP connection to $host:$port..."
-
-while ! nc -w 1 db $port 2>/dev/null
-do
-  echo -n .
-  sleep 1
-done
-
-echo 'ok'
+/srv/bin/misc/wait-for-it/wait-for-it.sh -h localhost -p $DB_PORT;
index d8f775b3d548e879d00c10c1749ea2feb9492c3a..461966150adb50e5d430df44f646fb8e90fbfa16 100644 (file)
@@ -1,3 +1,4 @@
 POSTGRES_PASSWORD=noodFof2Kna
 POSTGRES_PORT=5432
+DB_PORT=5432
 DEBUG=True
\ No newline at end of file
index c35fff29273b72a2214bfac83e33e6a5d80b3666..65e3abe4637afd8e82a6865b8446506b8743f465 160000 (submodule)
@@ -1 +1 @@
-Subproject commit c35fff29273b72a2214bfac83e33e6a5d80b3666
+Subproject commit 65e3abe4637afd8e82a6865b8446506b8743f465