create start-up script for migration
This commit is contained in:
13
docker/php/startup.sh
Normal file
13
docker/php/startup.sh
Normal 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
|
||||
Reference in New Issue
Block a user