mirror of
https://github.com/dyrkin/luxmed-bot.git
synced 2025-12-24 14:31:55 +01:00
#58 resolve DB_HOST in the run.sh script
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
#!/bin/sh
|
||||
|
||||
echo "********************************************************"
|
||||
echo "Waiting for the database server to start on port ${DB_PORT:-5432}"
|
||||
echo "Waiting for the database server to start on host ${DB_HOST:-localhost} and port ${DB_PORT:-5432}"
|
||||
echo "********************************************************"
|
||||
while ! `nc -z database ${DB_PORT:-5432}`; do sleep 3; done
|
||||
while ! `nc -z ${DB_HOST:-localhost} ${DB_PORT:-5432}`; do sleep 3; done
|
||||
echo "******** Database Server has been started "
|
||||
|
||||
echo "********************************************************"
|
||||
|
||||
Reference in New Issue
Block a user