download fixes

This commit is contained in:
Mark Gregory
2026-10-12 10:32:50 +01:00
parent c6411075d9
commit d94845b1f6
+5 -1
View File
@@ -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');