File size: 488 Bytes
486275c
9bd9d98
486275c
 
 
 
 
 
 
 
9bd9d98
486275c
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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'])