- resolve error in makefile new rule
- supress script for wordpress entrypoint when wp is already installed, it was causing error in redirection
This commit is contained in:
@@ -62,19 +62,21 @@ then
|
||||
|
||||
else
|
||||
echo -e ${GREEN}wp is installed${RESET}
|
||||
|
||||
#https://stackoverflow.com/questions/56344567/wordpress-prevent-redirection-to-main-url
|
||||
echo -e ${YELLOW}checking config.php file with current url...${RESET}
|
||||
HOME=$(php wp-cli.phar config get WP_HOME --path=${WP_VOLUME_DIR})
|
||||
if [ ${HOME} != ${WP_COMPLETE_URL} ] ; then
|
||||
php wp-cli.phar config set WP_HOME ${WP_COMPLETE_URL} --path=${WP_VOLUME_DIR}
|
||||
fi
|
||||
SITEURL=$(php wp-cli.phar config get WP_SITEURL --path=${WP_VOLUME_DIR})
|
||||
if [ ${SITEURL} != ${WP_COMPLETE_URL} ] ; then
|
||||
php wp-cli.phar config set WP_SITEURL ${WP_COMPLETE_URL} --path=${WP_VOLUME_DIR}
|
||||
fi
|
||||
fi
|
||||
|
||||
# https://developer.wordpress.org/advanced-administration/debug/debug-wordpress/
|
||||
echo -e ${YELLOW}configuring the error logs...${RESET}
|
||||
# Enable WP_DEBUG mode
|
||||
php wp-cli.phar config set WP_DEBUG true --raw --path=${WP_VOLUME_DIR}
|
||||
# Enable Debug logging to the /wp-content/debug.log file
|
||||
#php wp-cli.phar config set WP_DEBUG_LOG /var/log/tmp_errors.log --raw --path=${WP_VOLUME_DIR}
|
||||
php wp-cli.phar config set WP_DEBUG_LOG true --raw --path=${WP_VOLUME_DIR}
|
||||
# Disable display of errors and warnings
|
||||
php wp-cli.phar config set WP_DEBUG_DISPLAY false --raw --path=${WP_VOLUME_DIR}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# exec php-fpm7 -FR
|
||||
# php-fpm7 --help :
|
||||
|
||||
Reference in New Issue
Block a user