Check out this error generated by composer install command
INFO 06.12.2020_09-04-01 Result: [RuntimeException] The HOME or COMPOSER_HOME environment variable must be set for composer to run correctly
INFO 06.12.2020_09-04-00 Running: /usr/local/lsws/lsphp74/bin/php /usr/bin/composer install --prefer-dist -n -o -d ~/public_html/
The command is correct because, form console, using su - user to impersonate che website user, the command successfully install composer dependancies without errors, bot for some reason, from post-webhook commands doesn’t work