diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rw-r--r-- | app.py | 2 | ||||
| -rw-r--r-- | run_senior.bat | 4 | ||||
| -rw-r--r-- | run_youth.bat | 4 |
4 files changed, 11 insertions, 1 deletions
@@ -2,6 +2,8 @@ +https://superuser.com/questions/1579575/how-to-get-batch-script-to-automatically-run-on-startup + ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. @@ -6,7 +6,7 @@ from flask import Flask, render_template, request load_dotenv() app = Flask("Match Up! Backend") -app.config.from_object(getenv("PROD_APP_SETTINGS")) +app.config.from_object(getenv("APP_SETTINGS")) rg = RoundGenerator(courts=CourtList(12), players=PlayerList(getenv("DATABASE"))) diff --git a/run_senior.bat b/run_senior.bat new file mode 100644 index 0000000..65b5e41 --- /dev/null +++ b/run_senior.bat @@ -0,0 +1,4 @@ +SET "DATABASE=database_senior.csv" +SET "APP_SETTINGS=config.ProductionConfig" +call .venv\Scripts\activate +call flask run -p 3000
\ No newline at end of file diff --git a/run_youth.bat b/run_youth.bat new file mode 100644 index 0000000..a66ae31 --- /dev/null +++ b/run_youth.bat @@ -0,0 +1,4 @@ +SET "DATABASE=database_youth.csv" +SET "APP_SETTINGS=config.ProductionConfig" +call .venv\Scripts\activate +call flask run
\ No newline at end of file |
