mirror of
https://github.com/Justuser3310/jetwork.git
synced 2025-01-18 17:08:48 +00:00
up
This commit is contained in:
parent
7b344a41eb
commit
1bc483a3b6
2
main.py
2
main.py
@ -37,8 +37,6 @@ rp_serv.start()
|
||||
#http сервер
|
||||
http = Thread(target = server_http)
|
||||
http.start()
|
||||
sleep(1)
|
||||
os.chdir("../") # возвращаемся в корень
|
||||
# сервер для пинга
|
||||
server = Thread(target = server, args=(http_port,))
|
||||
server.start()
|
||||
|
@ -38,8 +38,7 @@ def port_gen():
|
||||
def server_http():
|
||||
while True:
|
||||
try:
|
||||
os.chdir("cached")
|
||||
os.system("python -m http.server")
|
||||
os.system("python -m http.server --directory cached")
|
||||
except Exception as e:
|
||||
print("SERVER_HTTP FALLED")
|
||||
logging.critical(e, exc_info=True)
|
||||
|
Loading…
Reference in New Issue
Block a user