restructure for docker

This commit is contained in:
Ville Rantanen
2023-07-24 20:02:45 +03:00
parent 79780f0769
commit 58abf04d2c
45 changed files with 152 additions and 17 deletions

22
forum/run_sqlite.sh Executable file
View File

@@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -e
if [ ! -e venv ]
then
echo "venv not found, did you run make?" >&2
exit 1
fi
if [ $# != 2 ]
then
echo "Usage: $0 <file.db> <pid file>" >&2
exit 1
fi
. ./venv/bin/activate
export DB="$1"
export SERVER=gunicorn
export PID="$2"
exec gunicorn -w 4 'main:app' --pid="$PID" -b 0.0.0.0:8000