fix(deploy): explicit SSR restart after build + defensive props

This commit is contained in:
F4ilji
2026-08-31 20:05:39 +05:00
parent 712f172071
commit 774de4a6ab
2 changed files with 68 additions and 231 deletions
Vendored
+7 -1
View File
@@ -123,7 +123,13 @@ pipeline {
stage('Restart Services') {
steps {
dir("${APP_DIR}") {
sh 'docker restart ntspi-nginx ntspi-php ntspi-php-queue'
sh '''
docker exec ntspi-php php artisan inertia:stop-ssr || true
docker restart ntspi-nginx ntspi-php ntspi-php-queue
sleep 5
docker exec ntspi-php php artisan inertia:stop-ssr || true
docker exec ntspi-php php artisan inertia:start-ssr || true
'''
}
}
}