New project structure init

This commit is contained in:
Almira Krdzic
2018-07-30 08:54:41 +02:00
parent 63cce6100c
commit e91e2d8a93
2735 changed files with 1345 additions and 952660 deletions

32
docker/php/setup.sh Normal file
View File

@@ -0,0 +1,32 @@
#!/bin/sh
#migrate DB
cd /var/www/html
while ! mysqladmin ping -h"db" --silent; do
sleep 1
done
echo "Ready...."
# Apply core database updates if needed
wp core update-db
# Activate plugins in desired order
# (if plugin is already activated command will do nothing)
wp plugin activate woocommerce-jetpack --allow-root
wp plugin activate groups --allow-root
wp plugin activate jwt-authentication-for-wp-rest-api --allow-root
wp plugin activate wiaas --allow-root
# Execute database update for updated plugins
# (if no changes detected command will do nothing)
wp wc update --allow-root
# Execute database update for wiaas
# (if no changes detected command will do nothing)
wp wiaas update-db --allow-root
echo "Done"
#start image
exec apache2-foreground