From 25052f73c3248118ca795a4ccfbe586c48c93433 Mon Sep 17 00:00:00 2001 From: A <37412+phof@users.noreply.github.com> Date: Sun, 17 May 2026 11:33:53 +0200 Subject: [PATCH] spliit: mirror upstream Dockerfile build flow Use 'npm ci --ignore-scripts' + explicit 'npx prisma generate' instead of 'npm install' (which triggered postinstall and ran with NODE_ENV=production from a sourced .env, skipping devDependencies like autoprefixer). Migrations are run explicitly after build, matching the Dockerfile's container-entrypoint.sh. --- ct/spliit.sh | 10 +++++++--- install/spliit-install.sh | 10 +++++++--- 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/ct/spliit.sh b/ct/spliit.sh index 3f39714c..6c05f8b1 100755 --- a/ct/spliit.sh +++ b/ct/spliit.sh @@ -47,12 +47,16 @@ function update_script() { msg_info "Building Application" cd /opt/spliit - set -a && source /opt/spliit/.env && set +a - $STD npm install - $STD npm install deepmerge + $STD npm ci --ignore-scripts + $STD npx prisma generate $STD npm run build msg_ok "Built Application" + msg_info "Running Database Migrations" + cd /opt/spliit + $STD npx prisma migrate deploy + msg_ok "Ran Database Migrations" + msg_info "Starting Service" systemctl start spliit msg_ok "Started Service" diff --git a/install/spliit-install.sh b/install/spliit-install.sh index 513e4389..4ab99157 100755 --- a/install/spliit-install.sh +++ b/install/spliit-install.sh @@ -39,12 +39,16 @@ msg_ok "Configured Application" msg_info "Building Application" cd /opt/spliit -set -a && source /opt/spliit/.env && set +a -$STD npm install -$STD npm install deepmerge +$STD npm ci --ignore-scripts +$STD npx prisma generate $STD npm run build msg_ok "Built Application" +msg_info "Running Database Migrations" +cd /opt/spliit +$STD npx prisma migrate deploy +msg_ok "Ran Database Migrations" + msg_info "Creating Service" cat </etc/systemd/system/spliit.service [Unit]