Merge branch 'main' of git.satori.love:LaniakeaSupercluster/webrtc
没有说明
This commit is contained in:
commit
db8b33299c
5
index.js
5
index.js
@ -121,11 +121,8 @@ app.ws('/entanglement', (ws, req) => {
|
|||||||
// WEBHOOK 处理 GitHub 事件
|
// WEBHOOK 处理 GitHub 事件
|
||||||
app.post('/webhook', (req, res) => {
|
app.post('/webhook', (req, res) => {
|
||||||
console.log('WEBHOOK:' + new Date().toLocaleString())
|
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 })
|
return res.json({ success: true })
|
||||||
})
|
})
|
||||||
|
|
||||||
// 启动时build
|
|
||||||
exec('npm run build')
|
|
||||||
|
|
||||||
app.listen(4096, () => console.log('Server started on port 4096'))
|
app.listen(4096, () => console.log('Server started on port 4096'))
|
||||||
|
Loading…
Reference in New Issue
Block a user