v1.1.6: cleanup — schema sort fix, batch upload, temp dir to D:, update.bat wildcard fix
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
import subprocess, time, urllib.request, os, sys
|
||||
os.chdir(r"C:\Users\25044\Desktop\Proj\天璇")
|
||||
server = subprocess.Popen(
|
||||
[r"runtime\python\python.exe", "manage.py", "runserver", "127.0.0.1:8765", "--noreload"],
|
||||
stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL
|
||||
)
|
||||
time.sleep(6)
|
||||
for i in range(5):
|
||||
try:
|
||||
r = urllib.request.urlopen("http://127.0.0.1:8765/", timeout=5)
|
||||
if r.status == 200:
|
||||
print("SERVER_UP")
|
||||
sys.exit(0)
|
||||
except: pass
|
||||
time.sleep(2)
|
||||
print("SERVER_FAILED")
|
||||
@@ -0,0 +1,9 @@
|
||||
import subprocess, time, urllib.request, sys, os
|
||||
os.chdir(r"C:\Users\25044\Desktop\Proj\天璇")
|
||||
p = subprocess.Popen([r"runtime\python\python.exe", "manage.py", "runserver", "127.0.0.1:8765", "--noreload"])
|
||||
time.sleep(8)
|
||||
try:
|
||||
urllib.request.urlopen("http://127.0.0.1:8765/", timeout=5)
|
||||
print("SERVER_UP")
|
||||
except:
|
||||
print("SERVER_DOWN")
|
||||
Reference in New Issue
Block a user