create start-up script for migration

This commit is contained in:
GotPPay
2018-06-26 13:47:39 +02:00
parent 37c749a9d7
commit 9b26ff1cd4
3 changed files with 66 additions and 6 deletions

13
docker/php/startup.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
#migrate DB
cd /var/www/html/api-wiaas
while ! mysqladmin ping -h"db" --silent; do
sleep 1
done
echo "Ready...."
vendor/bin/phinx migrate -e development
#start image
exec apache2-foreground