More work

This commit is contained in:
Finn Stutzenstein committed 2022-01-22 18:37:56 +01:00
1 parent 9d018e00be
commit add153d8a6
98 files changed
+18520 -333

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
printf "Black:\n"
black max/
printf "\nIsort:\n"
isort max/
printf "\nFlake8:\n"
flake8 max/
+20
View File
@@ -0,0 +1,20 @@
#!/bin/bash
set -e
echo "start db setup"
if [ -z "$PGSQL_HOST" ]; then
echo "Note: Postgresql not set!!"
exit 1;
fi
export PGSQL_PORT="${PGSQL_PORT:-5432}"
wait-for-it --timeout=15 "$PGSQL_HOST:$PGSQL_PORT"
# Create schema in postgresql
export PGPASSWORD="$PGSQL_PASSWORD"
psql -1 -h "$PGSQL_HOST" -p "$PGSQL_PORT" -U "$PGSQL_USER" -d "$PGSQL_NAME" -f max/db/schema.sql
echo "end db setup"
+10
View File
@@ -0,0 +1,10 @@
#!/bin/bash
set -e
source db-setup.sh
flask add-domain finn.st
flask reset-admin admin@finn.st admin
exec "$@"
+7
View File
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
source db-setup.sh
exec "$@"
+13
View File
@@ -0,0 +1,13 @@
[flake8]
max_line_length = 96
[isort]
include_trailing_comma = true
multi_line_output = 3
lines_after_imports = 2
combine_as_imports = true
force_grid_wrap = 0
use_parentheses = true
line_length = 88
known_first_party = max
known_third_party = flask
+3
View File
@@ -0,0 +1,3 @@
#!/bin/bash
export FLASK_ENV=production
gunicorn -w 1 -b 0.0.0.0:8000 max.app:app
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
flask run --host 0.0.0.0 --port 8000