You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
461 B
19 lines
461 B
# -*- coding: utf-8 -*- |
|
from apiApp import apiApp |
|
from apiApp.config import config |
|
from waitress import serve |
|
model = None |
|
|
|
''' |
|
from pathlib import Path |
|
import os |
|
BASE_DIR = Path(__file__).parent.absolute() |
|
CONFIG_PATH = '/home/dev/GigaAM_API/config.ini' |
|
''' |
|
|
|
|
|
#config.read(CONFIG_PATH) |
|
|
|
if __name__ == '__main__': |
|
#apiApp.run(debug=True, port=config['WEB_APP']['PORT'], use_reloader=False) |
|
serve(apiApp, host='0.0.0.0', port=config['WEB_APP']['PORT'])
|
|
|