Failed to deploy on option to install WP-CLI packages

At first glance, I’d guess that the git clone is failing because Local modifications exist in repository and force=no. This refers to the path /srv/www/example.com/shared/source.

I don’t know how modifications could be made to those files unless manually, like this precedent. Actions on the live site probably didn’t make the modifications because the site works with the project files copied to a new subdirectory of /srv/www/example.com/releases.

I haven’t tried, but I’d suggest:

  • ssh to server
    ssh web@example.com
  • navigate to shared dir
    cd /srv/www/example.com/shared
  • move source dir out of the way, as backup
    mv source source_bak
  • list modified files, just for information
    cd source_bak && git status
  • retry deploy

The next deploy should make a new clean clone in a new source directory and hopefully you’ll be on your way. If that works, then I’d keep an eye out for the problem recurring, and if it recurs, try to figure out what could be modifying files in this source directory.

1 Like