Description
Hi,
we were using wp-config-sample.php file to keep some project specific variables e.g.
define( 'SFTP_PATH', dirname( __FILE__ ) . '/sftp' );
Everything was working fine, however today when the project was rebuilt, I got an error in the logs, that one of our custom variables defined in wp-config-sample.php is undefined. Additionally at the start of the container there is this message:
No 'wp-config.php' found in /var/www/html, but 'WORDPRESS_...' variables supplied; copying '/usr/src/wordpress/wp-config-docker.php' (WORDPRESS_AUTH_KEY WORDPRESS_AUTH_SALT WORDPRESS_CONFIG_EXTRA WORDPRESS_DB_HOST WORDPRESS_DB_NAME WORDPRESS_DB_PASSWORD WORDPRESS_DB_USER WORDPRESS_LOGGED_IN_KEY WORDPRESS_LOGGED_IN_SALT WORDPRESS_NONCE_KEY WORDPRESS_NONCE_SALT WORDPRESS_SECURE_AUTH_KEY WORDPRESS_SECURE_AUTH_SALT)
I just discovered that there was PR merged few days ago, introducing wp-docker-config.php. I checked the repo, and https://hub.docker.com/_/wordpress/ but I couldn't find any helpful documentation on this problem. Will I still be able to use the previous setup with wp-config-sample.php, or do I need to switch to wp-docker-config.php? If so, how can I define custom variables?