aupdate dor ispmanager
This commit is contained in:
parent
dc91d70569
commit
f711341798
4
main.py
4
main.py
@ -20,10 +20,10 @@ app = FastAPI()
|
||||
application = WSGIMiddleware(app)
|
||||
|
||||
# Монтирование статических файлов
|
||||
app.mount("/static", StaticFiles(directory="app/static"), name="static")
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
|
||||
# Инициализация шаблонов
|
||||
templates = Jinja2Templates(directory="app/templates")
|
||||
templates = Jinja2Templates(directory="templates")
|
||||
|
||||
@app.get("/", response_class=HTMLResponse)
|
||||
async def read_index(request: Request):
|
||||
|
||||
@ -2,7 +2,7 @@ import sys
|
||||
|
||||
import os
|
||||
|
||||
INTERP = os.path.expanduser("/var/www/www-root/data/www/sybiko.ru/.venv/bin/python")
|
||||
INTERP = os.path.expanduser("/var/www/www-root/data/www/wanlanda.ru/.venv/bin/python")
|
||||
if sys.executable != INTERP:
|
||||
os.execl(INTERP, INTERP, *sys.argv)
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user