-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Create acct_mgt package for Python sources
Move all the account management code into the acct_mgt package. Putting the code into a single namespace like this makes it easier to write modular code, keeps the top-level directory organized, and makes testing simpler. x-branch: feature/prepare-for-tests
- Loading branch information
Showing
7 changed files
with
19 additions
and
16 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
"""WSGI wrapper for tooling that expects a top-level application object""" | ||
|
||
import logging | ||
|
||
from . import app | ||
|
||
APP = app.create_app() | ||
|
||
if __name__ == "__main__": | ||
APP.run() | ||
else: | ||
APP.logger = logging.getLogger("gunicorn.error") | ||
# logger level INFO = 20 see (https://docs.python.org/3/library/logging.html#levels) | ||
APP.logger.setLevel(20) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
exec gunicorn -b 0.0.0.0:8080 -c config.py -e PYTHONBUFFERED=TRUE wsgi:APP --log-file=- | ||
exec gunicorn -b 0.0.0.0:8080 -c config.py -e PYTHONBUFFERED=TRUE acct_mgt.wsgi:APP --log-file=- | ||
|