From c35a1300915baeb1a61dcc543f02f831d37d5cc1 Mon Sep 17 00:00:00 2001 From: salvacybersec Date: Tue, 11 Nov 2025 05:29:48 +0300 Subject: [PATCH] Fix: use serve instead of vite preview for frontend (production ready) --- deploy.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index b5c655a..5a8391a 100755 --- a/deploy.sh +++ b/deploy.sh @@ -435,8 +435,8 @@ module.exports = { { name: 'oltalama-frontend', cwd: '/opt/oltalama/frontend', - script: 'node_modules/.bin/vite', - args: 'preview --host 0.0.0.0 --port 4173', + script: 'npm', + args: 'run serve', instances: 1, exec_mode: 'fork', watch: false,