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