Youen
2 years ago
7 changed files with 27 additions and 31 deletions
@ -1,4 +1,7 @@
|
||||
#!/bin/bash |
||||
|
||||
SCRIPT_DIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" &> /dev/null && pwd) |
||||
|
||||
source venv/bin/activate |
||||
flask --app src/app --debug run |
||||
CONFIG_PATH=$SCRIPT_DIR/debug_config.py flask --app src/app --debug run |
||||
|
||||
|
@ -0,0 +1,8 @@
|
||||
import os |
||||
|
||||
src_path = os.path.dirname(os.path.realpath(__file__)) |
||||
|
||||
DATA_ROOT_DIR = os.path.realpath(src_path+'/../data') |
||||
DOCUMENT_ROOT_DIR = os.path.realpath(DATA_ROOT_DIR+'/doc') |
||||
|
||||
ADMIN_PASSWORD = '' # You must override this in config.py or the application won't start |
Loading…
Reference in new issue