diff --git a/.idea/ruff.xml b/.idea/ruff.xml new file mode 100644 index 0000000..dc7b5c1 --- /dev/null +++ b/.idea/ruff.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 9b82709..c48e348 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -1,10 +1,11 @@ services: app: build: - context: ./src + context: ./ dockerfile: Dockerfile container_name: cs2_battle_bot_api_prod command: sh -c "gunicorn cs2_battle_bot.wsgi:application --bind 0.0.0.0:8000" +# command: sh -c "ls" expose: - "8000" volumes: diff --git a/pyproject.toml b/pyproject.toml index 8c706e2..e917daa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "cs2-battle-bot-api" -version = "0.0.23" +version = "0.0.24" description = "" authors = ["Adrian Ciolek "] readme = "README.md" diff --git a/src/cs2_battle_bot/settings.py b/src/cs2_battle_bot/settings.py index 4779691..a8f48d1 100644 --- a/src/cs2_battle_bot/settings.py +++ b/src/cs2_battle_bot/settings.py @@ -196,7 +196,10 @@ def get_spectacular_settings(): # Load the pyproject.toml file - pyproject_data = toml.load(Path(__file__).resolve().parent.parent.parent / "pyproject.toml") + pyproject_path = Path(__file__).resolve().parent.parent / "pyproject.toml" + if DEBUG is True: + pyproject_path = Path(__file__).resolve().parent.parent.parent / "pyproject.toml" + pyproject_data = toml.load(pyproject_path) # Get the name, version, and description name = pyproject_data.get("tool", {}).get("poetry", {}).get("name", "")