mirror of
https://github.com/elyby/accounts.git
synced 2024-11-09 06:02:39 +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