run-tls: use exec when starting uvicorn

- exec replaces the running shell (script)

Signed-off-by: HeshamTB <hishaminv@gmail.com>
This commit is contained in:
HeshamTB 2022-04-17 20:40:07 +03:00
parent 4617e5a7a2
commit c0c9c7da2b

View File

@ -1,4 +1,4 @@
#!/bin/bash
source venv/bin/activate
uvicorn sql_app.main:app --ssl-certfile server.crt --ssl-keyfile server.key --port 4242 --host 0.0.0.0 --no-server-header
exec uvicorn sql_app.main:app --ssl-certfile server.crt --ssl-keyfile server.key --port 4242 --host 0.0.0.0 --no-server-header