Error running vp on Linux
Please be specific when describing the issue. Also, these details will help:
- VersionPress 3.0.2:
- WordPress 4.9.6:
- OS, webserver, PHP: Linux www1.g23.pair.com 4.4.0-127-generic #153-Ubuntu SMP, Apache, php 7x
- Git version: 2.12.3
Somewhere, there is a shell command that is looking for the executable "wp", but in fact on this system, it's wp-cli. Is there something I could set to tell vp to look for wp-cli instead?
Example: fiddlersweb@www1:~/public_html/wes.fiddlerstest.org$ wp-cli vp pull --from=version-test Error: Maintenance mode couldn't be switched. Details:
sh: 1: wp: not found
Hi, try using VP_WP_CLI_BINARY constant, similarly to these ones. For example,
wp vp config VP_WP_CLI_BINARY '/custom/path/to/wp-cli'
That's good. Thanks. I temporarily solved by putting a link from wp-cli to wp in my PATH
$ wp vp config VP_WP_CLI_BINARY $(which wp-cli) VP_WP_CLI_BINARY Error: Cannot configure constant 'VP_WP_CLI_BINARY'