Skip to content

Commit

Permalink
Merge pull request #20 from Qwizi/0.0.24
Browse files Browse the repository at this point in the history
Fix nginx run on prod
  • Loading branch information
Qwizi authored Apr 23, 2024
2 parents 07bacc8 + bb80c2c commit 8de9d85
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .idea/ruff.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "cs2-battle-bot-api"
version = "0.0.23"
version = "0.0.24"
description = ""
authors = ["Adrian Ciolek <ciolek.adrian@protonmail.com>"]
readme = "README.md"
Expand Down
5 changes: 4 additions & 1 deletion src/cs2_battle_bot/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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", "")
Expand Down

0 comments on commit 8de9d85

Please sign in to comment.