New project structure init
This commit is contained in:
@@ -5,7 +5,7 @@ RewriteBase /
|
||||
RewriteRule ^index\.php$ - [L]
|
||||
RewriteCond %{REQUEST_FILENAME} !-f
|
||||
RewriteCond %{REQUEST_FILENAME} !-d
|
||||
RewriteRule . /index.php [L]
|
||||
RewriteRule . /wp/index.php [L]
|
||||
RewriteCond %{HTTP:Authorization} ^(.*)
|
||||
RewriteRule ^(.*) - [E=HTTP_AUTHORIZATION:%1]
|
||||
</IfModule>
|
||||
|
||||
BIN
docker/php/composer.phar
Normal file
BIN
docker/php/composer.phar
Normal file
Binary file not shown.
32
docker/php/setup.sh
Normal file
32
docker/php/setup.sh
Normal 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
|
||||
BIN
docker/php/wp-cli.phar
Normal file
BIN
docker/php/wp-cli.phar
Normal file
Binary file not shown.
Reference in New Issue
Block a user