This commit is contained in:
midoks
2023-02-13 15:56:41 +08:00
parent 53cb56ddf2
commit 7198a4de95
3 changed files with 4 additions and 6 deletions
+1 -1
View File
@@ -309,7 +309,7 @@ def opLuaInitAccessFile():
opLuaMake('access_by_lua_file')
def opLuaMake():
def opLuaMakeAll():
opLuaInitFile()
opLuaInitWorkerFile()
opLuaInitAccessFile()
+2 -2
View File
@@ -356,7 +356,7 @@ def makeDstLua():
content = contentReplace(content)
mw.writeFile(access_file_dst, content)
mw.opLuaMake()
mw.opLuaMakeAll()
def initDreplace():
@@ -448,7 +448,7 @@ def stop():
import tool_task
tool_task.removeBgTask()
mw.opLuaMake()
mw.opLuaMakeAll()
restartWeb()
return 'ok'
+1 -3
View File
@@ -158,9 +158,7 @@ def confReplace():
if not os.path.exists(empty_lua):
mw.writeFile(empty_lua, '')
mw.opLuaInitFile()
mw.opLuaInitWorkerFile()
mw.opLuaInitAccessFile()
mw.opLuaMakeAll()
# 静态配置
php_conf = mw.getServerDir() + '/web_conf/php/conf'