mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-17 17:01:37 +00:00
Use Site PHP Version to Run Composer Install (#218)
This commit is contained in:
parent
2b849c888e
commit
dd4a3d30c0
@ -14,6 +14,7 @@ public function installDependencies(Site $site): void
|
||||
$site->server->ssh()->exec(
|
||||
$this->getScript('composer-install.sh', [
|
||||
'path' => $site->path,
|
||||
'php_version' => $site->php_version,
|
||||
]),
|
||||
'composer-install',
|
||||
$site->id
|
||||
|
@ -2,6 +2,6 @@ if ! cd __path__; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
||||
if ! composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev; then
|
||||
if ! php__php_version__ /usr/local/bin/composer install --no-interaction --prefer-dist --optimize-autoloader --no-dev; then
|
||||
echo 'VITO_SSH_ERROR' && exit 1
|
||||
fi
|
||||
|
Loading…
x
Reference in New Issue
Block a user