diff --git a/app/config.py b/app/config.py index bd25c8b..d95a620 100644 --- a/app/config.py +++ b/app/config.py @@ -30,9 +30,9 @@ class Config(object): MAIL_USERNAME = os.environ.get('MAIL_USERNAME') MAIL_USE_TLS = os.environ.get('MAIL_USE_TLS') is not None MILLISECOND_SIGFIGS = 0 - MYSQL_CONNECT = "mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster" + MYSQL_CONNECT = os.environ.get('MYSQL_CONNECT') or "mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_dev" # noqa E501 NORMALISE_ON_IMPORT = True - ROOT = "/home/kae/music" + ROOT = os.environ.get('ROOT') or "/home/kae/music" TESTMODE = True TIMER_MS = 500 VOLUME_VLC_DEFAULT = 81 diff --git a/run_debug.sh b/run_gdb.sh similarity index 100% rename from run_debug.sh rename to run_gdb.sh diff --git a/run_prod.sh b/run_prod.sh new file mode 100755 index 0000000..c4ba3d2 --- /dev/null +++ b/run_prod.sh @@ -0,0 +1,4 @@ +#!/bin/bash gdb -ex r --args /home/kae/git/musicmuster/.direnv/python-3.9.2/bin/python app/musicmuster.py +MYSQL_CONNECT="mysql+mysqldb://musicmuster:musicmuster@localhost/musicmuster_prod" +ROOT="/home/kae/music" +./app/musicmuster.py