mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
use listenLiveDirectory
This commit is contained in:
parent
24a4a9c27a
commit
8d4e752662
@ -105,9 +105,16 @@ class WebWrapper extends Server {
|
||||
|
||||
setTimeout(async () => {
|
||||
await this.updateDistApp()
|
||||
await this.listenLiveDirectory()
|
||||
}, 30000)
|
||||
}
|
||||
|
||||
async listenLiveDirectory() {
|
||||
global.staticLiveDirectory = new LiveDirectory(WebWrapper.appDistPath, {
|
||||
static: false,
|
||||
})
|
||||
}
|
||||
|
||||
async onInitialize() {
|
||||
if (process.env.WRAPPER_AUTO_UPDATE_KEY) {
|
||||
console.log("Auto update key is set, enabling webhook update")
|
||||
@ -152,9 +159,7 @@ class WebWrapper extends Server {
|
||||
}
|
||||
}
|
||||
|
||||
global.staticLiveDirectory = new LiveDirectory(WebWrapper.appDistPath, {
|
||||
static: false,
|
||||
})
|
||||
await this.listenLiveDirectory()
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user