Skip to content

Commit

Permalink
added docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
clemenstyp committed Feb 19, 2024
1 parent d1ed648 commit a9df3e5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
3 changes: 1 addition & 2 deletions docker-compose.yaml
Expand Up @@ -9,8 +9,7 @@
# https://github.com/docker/awesome-compose
services:
snackbar:
build:
context: .
image: ghcr.io/clemenstyp/snackbar:latest
ports:
- 5001:5000
volumes:
Expand Down
7 changes: 5 additions & 2 deletions flaskrun.py
Expand Up @@ -77,8 +77,11 @@ def flaskrun(app, options=None):

app.config["APPLICATION_ROOT"] = options.url_prefix

logging.getLogger("werkzeug").setLevel(logging.WARNING)

if not options.debug:
logging.getLogger("werkzeug").setLevel(logging.WARNING)
else:
logging.getLogger("werkzeug").setLevel(logging.DEBUG)

app.run(
debug=options.debug,
host=options.host,
Expand Down

0 comments on commit a9df3e5

Please sign in to comment.