Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main'
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Sep 5, 2024
2 parents b2e7aa2 + 20cee0a commit 308b446
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ RUN pip install .

EXPOSE 8080

CMD [ "waitress-serve", "narrowcast_content:app"]
CMD [ "python", "-m", "narrowcast_content.waitress_server"]
10 changes: 10 additions & 0 deletions narrowcast_content/waitress_server.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from waitress import serve
from . import app
from paste.translogger import TransLogger

serve(TransLogger(app, setup_console_handler=False),
host='0.0.0.0',
port=8080,
connection_limit=500,
threads=8,
)
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ dependencies = [
"spotipy",
"icalendar",
"waitress",
"PasteDeploy",
"paste",
]

[build-system]
Expand Down

0 comments on commit 308b446

Please sign in to comment.