diff --git a/index.js b/index.js index 74117c1..af6c314 100644 --- a/index.js +++ b/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'))