Skip to content

Commit

Permalink
Fix up listener ports. Add faulthandler stack traces.
Browse files Browse the repository at this point in the history
  • Loading branch information
obscurerichard committed Dec 26, 2024
1 parent 323152a commit 6442157
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:
depends_on:
- freezing-db
ports:
- "${FREEZING_WEB_PORT:-8000}:5000"
- "${FREEZING_WEB_PORT:-8000}:8000"
volumes:
- ./data/cache:/data/cache
- ./leaderboards:/data/leaderboards
Expand Down
7 changes: 6 additions & 1 deletion freezing/web/__init__.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
import faulthandler
import signal

from flask import Flask, g, session
from freezing.model import init_model, meta

from .config import config
faulthandler.register(signal.SIGUSR1)

from .config import config # noqa

# Thanks https://stackoverflow.com/a/17073583
app = Flask(
Expand Down

0 comments on commit 6442157

Please sign in to comment.