2020-04-05 04:30:53 +03:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
|
|
|
|
|
|
|
|
# Create config json if it doesn't exist
|
2020-04-06 03:09:23 +03:00
|
|
|
if [[ ! -f $SCRIPT_DIR/app/static/config.json ]]; then
|
|
|
|
echo "{}" > $SCRIPT_DIR/app/static/config.json
|
2020-04-05 04:30:53 +03:00
|
|
|
fi
|
|
|
|
|
|
|
|
pkill flask
|
|
|
|
|
|
|
|
# TODO: Set up the following for running over https
|
|
|
|
#--cert=./app/cert.pem --key=./app/key.pem
|
2020-04-07 20:04:03 +03:00
|
|
|
$SCRIPT_DIR/venv/bin/flask run
|