更改重载方式

This commit is contained in:
satori 2023-12-11 17:32:02 +08:00
parent 73d895dc2b
commit 3dd7e0fa0f
1 changed files with 1 additions and 4 deletions

View File

@ -121,11 +121,8 @@ app.ws('/entanglement', (ws, req) => {
// WEBHOOK 处理 GitHub 事件
app.post('/webhook', (req, res) => {
console.log('WEBHOOK:' + new Date().toLocaleString())
exec('git pull;npm i;npm run build')
exec('git pull;npm i;npm run build;pm2 reload webrtc;')
return res.json({ success: true })
})
// 启动时build
exec('npm run build')
app.listen(4096, () => console.log('Server started on port 4096'))