support icon indicating copy to clipboard operation
support copied to clipboard

Error running vp on Linux

Open wesm912 opened this issue 7 years ago • 3 comments

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

wesm912 avatar Jun 29 '18 05:06 wesm912

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'

borekb avatar Jun 29 '18 05:06 borekb

That's good. Thanks. I temporarily solved by putting a link from wp-cli to wp in my PATH

wesm912 avatar Jun 29 '18 05:06 wesm912

$ wp vp config VP_WP_CLI_BINARY $(which wp-cli) VP_WP_CLI_BINARY Error: Cannot configure constant 'VP_WP_CLI_BINARY'

wesm912 avatar Jun 29 '18 06:06 wesm912