versionpress / support

Unofficial support for VersionPress. Note that VersionPress is currently not being developed: https://github.com/versionpress/versionpress/issues/1481.
19 stars 7 forks source link

Git not passing activation #120

Closed petergus closed 7 years ago

petergus commented 7 years ago

I am trying to activate Versionpress locally.

The activation page says that Git is not available, So i entered the following in wp-config.php define('VP_GIT_BINARY', '/usr/local/git/bin/git');

Which returns # /usr/local/git/bin/git --version git version 2.0.1

However, with that in the config, the activation does not load.

Without that in the config I get the following on the more info page.

the proc_open user may be wrong, where does that get set?

I may be into all this trouble because I am trying to copy from the server and set up a dual system locally. What is the correct workflow, especially when copying the database??


Git
array (
  'git-binary-as-configured' => 'git',
  'git-available' => false,
  'output' => 
  array (
    'stdout' => '',
    'stderr' => 'xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun',
  ),
  'env-path' => '/usr/bin:/bin:/usr/sbin:/sbin',
)
Permissions
array (
  'exec-user' => 'petergus',
  'proc_open-user' => 'petergus',
  'php-can-write' => 
  array (
    'ABSPATH' => true,
    'WP_CONTENT_DIR' => true,
    'sys_temp_dir' => true,
  ),
petergus commented 7 years ago

I just want to add that I fixed it by following the instructions here https://blog.versionpress.net/2016/11/remote-workflows/ and then setting the git path as advised with WP CLI instead of manually.

"If at first you don't succeed, read the manual" :)

Found in another issue, this may have had something to do with fixing it:

Just a note (that probably should be added to the doc) but the global user.name and user.email must be set for versionpress to work from what I've seen.

git config --global user.name "your name" git config --global user.email "email@email.com"

borekb commented 7 years ago

@petergus Thanks for letting us know!