sohok's picture
Comment custom logging to prevent write permission error
9bd9d98
raw
history blame contribute delete
488 Bytes
from app import create_app
# from logger import custom_log as clog
import config as conf
import uvicorn, os
# os.system("cls") #remove ANSI char in cmd
apps = create_app()
if __name__ == "__main__":
# clog('info', 'Starting HarvestBuddy-API service')
# uvicorn.run(apps,
uvicorn.run("run:apps",
host=conf.APP['APP_IP'],
port=conf.APP['API_PORT'],
workers=4,
reload=True,
log_level="info",
reload_dirs=conf.DIR['PATH'])