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

24
forum/test/all.sh Executable file
View File

@@ -0,0 +1,24 @@
#!/usr/bin/env bash
SQLITE=sqlite3
FLASK=flask
set -e
set -x
tmp=$(mktemp -d)
trap 'rm -rf $tmp' EXIT
base=$(dirname "$0")
db=$tmp/forum.db
. $base/../venv/bin/activate
# initialize db
$base/../init_sqlite.sh $db --no-admin
$SQLITE $db < $base/init_db.txt
cd $base/..
export DB=$db
export SERVER=dev
$FLASK --app main --debug run $TEST_FLASK_ARGS