mirror of https://github.com/nocodb/nocodb
Philip Ebels
6 years ago
1 changed files with 12 additions and 0 deletions
@ -1,3 +1,15 @@
|
||||
#!/bin/sh |
||||
|
||||
set -e |
||||
|
||||
until nc -z -v -w30 $DATABASE_HOST 3306 |
||||
do |
||||
echo "Waiting for database connection..." |
||||
# wait for 5 seconds before check again |
||||
sleep 5 |
||||
done |
||||
|
||||
echo "Mysql is up - executing command" |
||||
|
||||
cd /usr/src/app/ |
||||
node index.js -h $DATABASE_HOST -p $DATABASE_PASSWORD -d $DATABASE_NAME -u $DATABASE_USER -n 80 -r 0.0.0.0 |
||||
|
Loading…
Reference in new issue