Hi
I am trying to run composer install after automatically deploying from a remote git repo.
I try this in the additional deployment actions:
cd /var/www/vhosts/xxx/xxx/httpdocs && /opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but the cd part of the command doesn't seem to work. It appears to run in the home directory of the user.
I have also tried:
cd /var/www/vhosts/xxx/xxx/httpdocs
/opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but this doesn't work either. This part works
/opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but it is running in the wrong place.
I can get all this to work fine over SSH.
Can anyone assist in how to get the "additonal deployment options" to change the directory?
Many thanks
JB
I am trying to run composer install after automatically deploying from a remote git repo.
I try this in the additional deployment actions:
cd /var/www/vhosts/xxx/xxx/httpdocs && /opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but the cd part of the command doesn't seem to work. It appears to run in the home directory of the user.
I have also tried:
cd /var/www/vhosts/xxx/xxx/httpdocs
/opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but this doesn't work either. This part works
/opt/plesk/php/7.2/bin/php /usr/lib64/plesk-9.0/composer.phar install --optimize-autoloader
but it is running in the wrong place.
I can get all this to work fine over SSH.
Can anyone assist in how to get the "additonal deployment options" to change the directory?
Many thanks
JB