Skip to content

Find a better way to call wp-cli #2

Description

@mlutfy

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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions