EasyEngine site debugging with docker commands

Now, here are some useful commands that can help you debug your site.

tail -f <filename>
tail -f -n <number-of-tailing-lines> <filename>

#example to tail from last 1000 files
tail -f -n 1000 <filename>

WordPress Debugging

Change these variables to true in site’s wp-config.php file.

// Enable WP_DEBUG mode.
define( "WP_DEBUG", true );

// Enable Debug logging to the /wp-content/debug.log file
define( "WP_DEBUG_LOG", true );

// Disable display of errors and warnings.
define( "WP_DEBUG_DISPLAY", true );

Access MYSQL as the root user

Get Root Pass

cd /opt/easyengine/services && docker-compose exec global-db bash -c 'echo ${MYSQL_ROOT_PASSWORD}'

Access MySQL as Root User

cd /opt/easyengine/services && docker-compose exec global-db bash -c 'mysql -uroot -p${MYSQL_ROOT_PASSWORD}'
Scroll to Top