webrain / grunt-wordpress-deploy

A Grunt plugin to quickly deploy Wordpress websites.
MIT License
104 stars 37 forks source link

Write to wp-config.php #22

Open drywall opened 10 years ago

drywall commented 10 years ago

Just thinking out loud: it might be nice if, instead of ignoring wp-config.php, this tool actually wrote to wp-config.php, updating it with the provided environment's database credentials and URLs (DB_NAME, DB_USER, DB_PASSWORD, DB_HOST, WP_HOME) during a file deploy. Since all that information is already present in-the-clear in the Gruntfile.js, why not provide a way to provide that information to the config file during a deployment?

Grawl commented 9 years ago

Completely agree. Good idea.

herbie4 commented 8 years ago

I don't think this works for everybody. For me I use different wp-config settings, like switching on or off core updates, on local, staging and final.