更改重载方式
This commit is contained in:
parent
73d895dc2b
commit
3dd7e0fa0f
5
index.js
5
index.js
@ -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'))
|
||||
|
Loading…
Reference in New Issue
Block a user