fix(deploy): explicit SSR restart after build + defensive props
This commit is contained in:
Vendored
+7
-1
@@ -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
|
||||
'''
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user