bcns-gameDistributionSystem/bcnsGDSAPI/modules/db_connect.py
odecif 77b0bcb94a Prepare API for gunicorn
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.
2023-11-21 12:51:35 +01:00

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"]