oedb-backend/Makefile

19 lines
654 B
Makefile
Raw Normal View History

2025-09-17 22:49:30 +02:00
default: start
dev: start
2025-09-21 16:57:24 +02:00
# Use PORT environment variable if set, otherwise default to 8080
PORT ?= 8080
# Log file for daemonized uWSGI
LOGFILE ?= uwsgi.log
2025-09-17 22:49:30 +02:00
start:
python3 -m venv venv
2025-09-26 11:57:54 +02:00
. venv/bin/activate && pip install -r requirements.txt && uwsgi --http :$(PORT) --wsgi-file backend.py --callable app
websocket:
python3 -m venv venv
. venv/bin/activate && pip install -r requirements.txt && pip install websockets && uwsgi --ini uwsgi.ini
# Version en arrière-plan (démon)
websocket-daemon:
python3 -m venv venv
. venv/bin/activate && pip install -r requirements.txt && pip install websockets && uwsgi --ini uwsgi.ini --daemonize $(LOGFILE)