mirror of
https://github.com/vitodeploy/vito.git
synced 2025-04-20 02:11:36 +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(
|
$site->server->ssh()->exec(
|
||||||
$this->getScript('composer-install.sh', [
|
$this->getScript('composer-install.sh', [
|
||||||
'path' => $site->path,
|
'path' => $site->path,
|
||||||
|
'php_version' => $site->php_version,
|
||||||
]),
|
]),
|
||||||
'composer-install',
|
'composer-install',
|
||||||
$site->id
|
$site->id
|
||||||
|
@ -2,6 +2,6 @@ if ! cd __path__; then
|
|||||||
echo 'VITO_SSH_ERROR' && exit 1
|
echo 'VITO_SSH_ERROR' && exit 1
|
||||||
fi
|
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
|
echo 'VITO_SSH_ERROR' && exit 1
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user