Skip to content

Commit

Permalink
Precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
pharr117 committed Oct 11, 2023
1 parent 4cdd7f7 commit fc91609
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app.py
Original file line number Diff line number Diff line change
Expand Up @@ -795,7 +795,7 @@ def get_app_args():
app_role_subparsers = parser.add_subparsers(title='subcommands',
description='valid app roles to run',
help='runs the application in various configurations', dest='command')

# debug mode runs the application as a development server, with the cache setup as a simple in Python cache
app_role_subparsers.add_parser('debug')
# reader mode runs the application as a production Flask server, with the cache setup as an external store that is read from
Expand Down
6 changes: 3 additions & 3 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
services:
reader:
build:
build:
context: .
ports:
- "5000:5000"
volumes:
- cache-volume:/var/lib/cache
command: ["gunicorn", "--bind", "0.0.0.0:5000", "-w", "4", "app:get_production_flask_app(\"/var/lib/cache\")"]
writer:
build:
build:
context: .
volumes:
- cache-volume:/var/lib/cache
command: ["python", "app.py", "writer", "--cache-location", "/var/lib/cache"]

volumes:
cache-volume:
cache-volume:

0 comments on commit fc91609

Please sign in to comment.