Refactor deployment script to handle symlinking of public data conditionally based on git tracking status, improving error handling for uncommitted changes. Update PM2 configuration to directly start the Node server for Nuxt 4 production builds in both harheimertc.config.cjs and harheimertc.simple.cjs. Modify user ID handling in registration options to use Uint8Array for compatibility with @simplewebauthn/server.

This commit is contained in:
Torsten Schulz (local)
2026-01-07 18:06:09 +01:00
parent 9f1c1a86f2
commit 13ea77f554
4 changed files with 32 additions and 14 deletions

View File

@@ -9,8 +9,9 @@ try {
module.exports = {
apps: [{
name: 'harheimertc',
script: 'npm',
args: 'run start',
// Nuxt 4 production build: direkt den Node-Server starten (kein "preview mode")
script: 'node',
args: '.output/server/index.mjs',
cwd: '/var/www/harheimertc',
instances: 1,
autorestart: true,