From 179142fd5ca7c8f3e027c420e37680fd79fb6551 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 11 Dec 2025 14:22:14 +0100 Subject: [PATCH] Update postgresus-install.sh --- install/postgresus-install.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/install/postgresus-install.sh b/install/postgresus-install.sh index bca3cd9f7..812346647 100644 --- a/install/postgresus-install.sh +++ b/install/postgresus-install.sh @@ -26,12 +26,16 @@ NODE_VERSION="24" setup_nodejs fetch_and_deploy_gh_release "postgresus" "RostislavDugin/postgresus" "tarball" "latest" "/opt/postgresus" msg_info "Building Postgresus (Patience)" +# Build frontend cd /opt/postgresus/frontend $STD npm ci $STD npm run build + +# Build backend cd /opt/postgresus/backend +$STD go mod tidy $STD go mod download -$STD go build -o /opt/postgresus/postgresus ./cmd/main.go +$STD CGO_ENABLED=0 go build -o /opt/postgresus/postgresus ./cmd/main.go mkdir -p /opt/postgresus/{data,backups,logs} cp -r /opt/postgresus/frontend/dist /opt/postgresus/ui cp -r /opt/postgresus/backend/migrations /opt/postgresus/