버그 수정: 업데이트 서버 참조 오류(ReferenceError) 해결 및 스크립트 실행력 복구
This commit is contained in:
parent
254cc34daf
commit
d2a2ddfbda
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user