nextExplorer: Update build for v2.2.0

This commit is contained in:
vhsdream
2026-02-10 09:13:22 -05:00
parent 754b3d4b6b
commit bc8a96b3fd
2 changed files with 15 additions and 16 deletions

View File

@@ -41,14 +41,14 @@ function update_script() {
msg_info "Updating nextExplorer"
APP_DIR="/opt/nextExplorer/app"
mkdir -p "$APP_DIR"
cd /opt/nextExplorer/backend
cd /opt/nextExplorer
export NODE_ENV=production
$STD npm ci
cd /opt/nextExplorer/frontend
$STD npm ci --workspace backend
cd /opt/nextExplorer
unset NODE_ENV
export NODE_ENV=development
$STD npm ci
$STD npm run build -- --sourcemap false
$STD npm ci --workspace frontend
$STD npm run -w frontend build -- --sourcemap false
unset NODE_ENV
cd /opt/nextExplorer/
mv backend/{node_modules,src,package.json} "$APP_DIR"