12 lines
327 B
Python
12 lines
327 B
Python
import subprocess
|
|
|
|
import uvicorn
|
|
import cef_3M
|
|
import os
|
|
|
|
if not os.path.exists(os.path.join("keys", "vapid.pem")):
|
|
print("Generating VAPID key")
|
|
subprocess.run("openssl ecparam -name prime256v1 -genkey -noout -out keys/vapid.pem".split())
|
|
print("key generated")
|
|
|
|
uvicorn.run("cef_3M:app", port=8001, reload=True)
|