From 70c9df24d9ff806428a88f361fe31bda6d67fe31 Mon Sep 17 00:00:00 2001 From: "CanbiZ (MickLesk)" <47820557+MickLesk@users.noreply.github.com> Date: Fri, 6 Feb 2026 14:25:44 +0100 Subject: [PATCH] Pangolin: replace build:sqlite with db:generate + build (#11616) * Replace build:sqlite with db:generate + build Update build flow in ct/pangolin.sh and install/pangolin-install.sh to use `npm run db:generate` followed by `npm run build` instead of the old `npm run build:sqlite`. Also normalize a DB generation invocation by replacing `npm run db:sqlite:generate` with `npm run db:generate` in the installer. These changes consolidate DB generation and use the standard build step. * Update pangolin-install.sh * db push on update --- ct/pangolin.sh | 4 +++- install/pangolin-install.sh | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/ct/pangolin.sh b/ct/pangolin.sh index 51a8c7447..983d32a8b 100644 --- a/ct/pangolin.sh +++ b/ct/pangolin.sh @@ -48,8 +48,10 @@ function update_script() { $STD npm run set:sqlite $STD npm run set:oss rm -rf server/private - $STD npm run build:sqlite + $STD npm run db:generate + $STD npm run build $STD npm run build:cli + $STD npm run db:sqlite:push cp -R .next/standalone ./ chmod +x ./dist/cli.mjs cp server/db/names.json ./dist/names.json diff --git a/install/pangolin-install.sh b/install/pangolin-install.sh index dc18541a4..04c5c9021 100644 --- a/install/pangolin-install.sh +++ b/install/pangolin-install.sh @@ -36,7 +36,8 @@ $STD npm ci $STD npm run set:sqlite $STD npm run set:oss rm -rf server/private -$STD npm run build:sqlite +$STD npm run db:generate +$STD npm run build $STD npm run build:cli cp -R .next/standalone ./ @@ -177,7 +178,6 @@ http: servers: - url: "http://$LOCAL_IP:3000" EOF -$STD npm run db:sqlite:generate $STD npm run db:sqlite:push . /etc/os-release