From f48609011b1937def38128e18a654bfb4f04e51d Mon Sep 17 00:00:00 2001 From: Vincent <114195376+HydroshieldMKII@users.noreply.github.com> Date: Tue, 30 Sep 2025 15:11:18 -0400 Subject: [PATCH] Refactor frontend setup in guardian-install.sh to streamline installation process and update service configuration --- install/guardian-install.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/install/guardian-install.sh b/install/guardian-install.sh index 51b67744..c13645ee 100644 --- a/install/guardian-install.sh +++ b/install/guardian-install.sh @@ -43,12 +43,11 @@ npm ci npm run build msg_ok "Built backend" -# ===== Build Frontend ===== -msg_info "Building frontend" +# ===== Install Frontend Dependencies ===== +msg_info "Installing frontend dependencies" cd /opt/Guardian/frontend npm ci -npm run build -msg_ok "Built frontend" +msg_ok "Installed frontend dependencies" # ===== Backend Service ===== msg_info "Creating Backend Service" @@ -81,7 +80,8 @@ Wants=guardian-backend.service [Service] WorkingDirectory=/opt/Guardian/frontend Environment=NODE_ENV=development -ExecStart=/usr/bin/npm run start +Environment=PORT=3000 +ExecStart=/usr/bin/npm run dev Restart=always RestartSec=3