It is now possible to run the API with gunicorn using gunicorn -w 4 -b 0.0.0.0:8001 'bcnsGDSAPI:create_app()'. Also did other small changes.
20 lines
271 B
Python
20 lines
271 B
Python
main = {}
|
|
database = {}
|
|
|
|
|
|
def init(config=None):
|
|
global main
|
|
global database
|
|
main = config["MAIN"]
|
|
database = config["DATABASE"]
|
|
|
|
return True
|
|
|
|
|
|
def contentpath():
|
|
return database["contentpath"]
|
|
|
|
|
|
def nfosuffix():
|
|
return database["nfo_suffix"]
|