From 317b3825c3b38054b0c98f097cb0f494633bb20a Mon Sep 17 00:00:00 2001 From: HeshamTB Date: Mon, 6 Jun 2022 20:07:26 +0300 Subject: [PATCH] helper scripts Signed-off-by: HeshamTB --- .gitignore | 1 + run-tls-reload | 4 ++++ sql_app/tests/run-tests | 4 ++++ 3 files changed, 9 insertions(+) create mode 100755 run-tls-reload create mode 100755 sql_app/tests/run-tests diff --git a/.gitignore b/.gitignore index 23c1eb9..9d3ae83 100644 --- a/.gitignore +++ b/.gitignore @@ -5,4 +5,5 @@ server.orig.key __pycache__ venv/ *.db +sql_app.db* .vscode/ diff --git a/run-tls-reload b/run-tls-reload new file mode 100755 index 0000000..ed23a8d --- /dev/null +++ b/run-tls-reload @@ -0,0 +1,4 @@ +#!/bin/bash + +source venv/bin/activate +exec uvicorn sql_app.main:app --ssl-certfile server.crt --ssl-keyfile server.key --port 4040 --host 0.0.0.0 --no-server-header --reload diff --git a/sql_app/tests/run-tests b/sql_app/tests/run-tests new file mode 100755 index 0000000..23e263f --- /dev/null +++ b/sql_app/tests/run-tests @@ -0,0 +1,4 @@ +#!/bin/bash + +source ../../venv/bin/activate +pytest