From d94845b1f65374d1ed3d3d3ac91bc9d0c95e8812 Mon Sep 17 00:00:00 2001 From: Mark Gregory Date: Mon, 12 Oct 2026 10:32:50 +0100 Subject: [PATCH] download fixes --- deploy.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/deploy.php b/deploy.php index 963c47e..7c57424 100755 --- a/deploy.php +++ b/deploy.php @@ -22,17 +22,20 @@ host('main') ->set('hostname', '217.154.47.197') ->set('remote_user', 'mag') ->set('branch', 'main') + ->set('php_version', '8.5') ->set('deploy_path', '/var/www/sonardesk/prod'); host('stage') ->set('hostname', '192.168.1.2') ->set('remote_user', 'mag') ->set('branch', 'stage') + ->set('php_version', '8.3') ->set('deploy_path', '/var/www/sonardesk/stage'); host('develop') ->set('hostname', '10.211.55.100') ->set('remote_user', 'mag') + ->set('php_version', '8.3') ->set('branch', 'develop') ->set('deploy_path', '/var/www/sonardesk/develop'); @@ -54,9 +57,10 @@ task('artisan:clear', function (): void { run('cd {{release_path}} && php artisan route:clear'); }); task('services:restart', function (): void { + $phpVersion = currentHost()->get('php_version'); run('sudo -n nginx -t'); run('sudo -n systemctl reload nginx'); - run('sudo -n systemctl restart php8.3-fpm'); + run("sudo -n systemctl restart php{$phpVersion}-fpm"); }); after('deploy:update_code', 'deploy:write_revision_file');