Merge branch 'main' of git.satori.love:LaniakeaSupercluster/webrtc

没有说明
This commit is contained in:
2023-12-21 13:00:33 +08:00
commit db8b33299c
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'))