-
Notifications
You must be signed in to change notification settings - Fork 10
Open
Labels
Description
Currently, the "provision-wordpress-install" and "provision-wordpress-cli" commands are calling wp-cli in a very unusual way: re-rewriting the $GLOBALS['argv'] variable, then doing an 'include' of wp-cli.php.
The main reason for doing this, instead of doing an 'exec', is to correctly include wp-config.php from the platform, while making sure that the $_SERVER variables are correctly set by the wpsite service.
However, there are alternatives that could work:
-
- update: no, because we prefer to "cloak" database credentials in the vhost, for more security. - finding out the correct way to call wp-cli.php so that it does not parse the $GLOBALS['argv'] variable.
While we're at it, it would be nice to have proper logging redirection (wp-cli does an fwrite to STDOUT).