mirror of
https://github.com/elyby/accounts.git
synced 2024-12-24 06:09:52 +05:30
Строго дожидаемся, пока станет доступна база данных
This commit is contained in:
parent
91db572411
commit
34131ab44a
@ -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 "$@"
|
||||||
|
Loading…
Reference in New Issue
Block a user