evertramos / docker-wordpress

Wordpress Docker container using SSL Certificates with LetsEncrypt
https://evertramos.github.io/docker-wordpress/
MIT License
484 stars 156 forks source link

wp-config.php missing configuration #54

Closed damon-t closed 3 years ago

damon-t commented 3 years ago

Hi,

after running a fresh container the wp-config.php file is not set with the right data from the .env file. with the previous version it was working. Could you please take a look on this?

evertramos commented 3 years ago

what is missing?

damon-t commented 3 years ago

I just ran into an error while running wpcli.

actually I thought that the MySQL settings in wpconfig.php will be get from the .env file. So I don't need to paste the same data again in a different file, or do I have to? Sorry, If it's confusing, do you know what I mean?

evertramos commented 3 years ago

no I don't... you must use wp cli as of:

docker-compose run --rm wpcli

please check:

./wp-cli-test.sh
damon-t commented 3 years ago

sure, I am running wp-cli like you mentioned. Do I have to configure wp-config.php manually before I can run wp-cli?