2022-03-03 12:42:02 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-04-04 01:02:29 +02:00
|
|
|
source venv/bin/activate
|
2022-06-12 11:52:04 +02:00
|
|
|
|
|
|
|
cd sql_app/
|
|
|
|
|
|
|
|
./file_permissios.py
|
|
|
|
if [ $? == 1 ]
|
|
|
|
then
|
|
|
|
echo "enviorment file_permissions are incorrect"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
cd ../
|
2022-05-23 20:09:03 +02:00
|
|
|
exec uvicorn sql_app.main:app --ssl-certfile server.crt --ssl-keyfile server.key --port 4040 --host 0.0.0.0 --no-server-header
|