diff options
Diffstat (limited to 'server-beta/main.lua')
-rw-r--r-- | server-beta/main.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server-beta/main.lua b/server-beta/main.lua index 83077681..91efcf34 100644 --- a/server-beta/main.lua +++ b/server-beta/main.lua @@ -2,7 +2,7 @@ local currentPath = debug.getinfo(1, 'S').source:sub(2) local rootPath = currentPath:gsub('[/\\]*[^/\\]-$', '') dofile(rootPath .. '/platform.lua') local fs = require 'bee.filesystem' -ROOT = fs.current_path() / rootPath +ROOT = fs.path(rootPath) LANG = LANG or 'en-US' collectgarbage 'generational' @@ -12,6 +12,6 @@ log.init(ROOT, ROOT / 'log' / 'service.log') log.info('Lua Lsp startup, root: ', ROOT) log.debug('ROOT:', ROOT:string()) -xpcall(dofile, log.debug, rootPath .. '/debugger.lua') +dofile(rootPath .. '/debugger.lua'):wait() local service = require 'service' service.start() |