File size: 412 Bytes
7191ca8
 
 
96d6edd
7191ca8
c26003e
 
 
 
7191ca8
 
 
 
 
 
4964cc6
7191ca8
 
4964cc6
7191ca8
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/usr/bin/env bash
set -e

cd /home/user/app

/usr/local/bin/ttyd -p 7681 /bin/bash&

echo "Console Auth <$CONSOLE_AUTH>"
echo "$CONSOLE_AUTH" > /etc/nginx/htpasswd
nginx

python whisper.py&

if [ "$DEBUG" = true ] ; then
    echo 'Debugging - ON'
    uvicorn api:app --host 0.0.0.0 --port 7880 --reload
else
    echo 'Debugging - OFF'
    uvicorn api:app --host 0.0.0.0 --port 7880
    echo $?
    echo END
fi