mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-28 19:16:16 +00:00
Remove Verbose option temporarilly
Gunicorn is really not happy with anything I try and parse through it
This commit is contained in:
parent
2eec988815
commit
dea3cca4a6
5 changed files with 28 additions and 36 deletions
9
run.py
9
run.py
|
@ -8,17 +8,18 @@ print("""
|
|||
Created by Fluffy Bean - Version 23.03.12
|
||||
""")
|
||||
|
||||
from setup.args import PORT, ADDRESS, WORKERS, DEBUG, VERBOSE
|
||||
|
||||
from setup.args import PORT, ADDRESS, WORKERS, DEBUG
|
||||
from setup.configuration import Configuration
|
||||
|
||||
|
||||
# Run prechecks
|
||||
Configuration(verbose=VERBOSE)
|
||||
Configuration()
|
||||
|
||||
|
||||
if DEBUG:
|
||||
from gallery import create_app
|
||||
create_app(verbose=VERBOSE).run(host=ADDRESS, port=PORT, debug=True, threaded=True)
|
||||
create_app().run(host=ADDRESS, port=PORT, debug=True, threaded=True)
|
||||
else:
|
||||
from gunicorn.app.base import Application
|
||||
from gunicorn import util
|
||||
|
@ -41,7 +42,7 @@ else:
|
|||
return 'OnlyLegs'
|
||||
|
||||
def load(self):
|
||||
return util.import_app(f'gallery:create_app(verbose={VERBOSE})')
|
||||
return util.import_app('gallery:create_app()')
|
||||
|
||||
options = {
|
||||
'bind': f'{ADDRESS}:{PORT}',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue