please work

This commit is contained in:
Game_Time 2023-08-20 15:29:13 +05:00 committed by GitHub
parent 8fbb049469
commit c263cc1626
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,6 +14,7 @@ Runs for production on the speicified port.
import os import os
import sys import sys
import time
port = sys.argv[1] if len(sys.argv) > 1 else 2332 port = sys.argv[1] if len(sys.argv) > 1 else 2332
dev = True dev = True
@ -23,3 +24,10 @@ if 'prod' in sys.argv:
dev = False dev = False
os.system(f'cd api && uvicorn main:app{" --reload" if dev else ""} --host 0.0.0.0 --port {port}') os.system(f'cd api && uvicorn main:app{" --reload" if dev else ""} --host 0.0.0.0 --port {port}')
time.sleep(2)
os.system('python tests')