버그 수정: 업데이트 서버 참조 오류(ReferenceError) 해결 및 스크립트 실행력 복구

This commit is contained in:
choibk 2026-01-25 02:07:01 +09:00
parent 254cc34daf
commit d2a2ddfbda

View File

@ -590,6 +590,8 @@ router.post('/version/update', isAuthenticated, hasRole('admin'), async (req, re
authPrefix = `git remote set-url origin ${auth.url} && `;
}
const isWindows = process.platform === 'win32';
// Build a more robust update script
// On dev environments, pm2 might fail, so we make it optional (|| echo)
const updateScript = isWindows