Строго дожидаемся, пока станет доступна база данных

This commit is contained in:
ErickSkrauch 2016-11-01 19:59:59 +03:00
parent 91db572411
commit 34131ab44a

View File

@ -30,9 +30,9 @@ fi
if [ "$YII_ENV" != "test" ] if [ "$YII_ENV" != "test" ]
then then
wait-for-it db:3306 -- "php /var/www/html/yii migrate/up --interactive=0" wait-for-it db:3306 -s -- "php /var/www/html/yii migrate/up --interactive=0"
else else
wait-for-it testdb:3306 -- "php /var/www/html/tests/codeception/bin/yii migrate/up --interactive=0" wait-for-it testdb:3306 -s -- "php /var/www/html/tests/codeception/bin/yii migrate/up --interactive=0"
fi fi
exec "$@" exec "$@"