Clean up
This commit is contained in:
54
app/main.py
54
app/main.py
@@ -14,8 +14,8 @@ from sqlalchemy import create_engine, text
|
||||
from sqlalchemy.exc import IntegrityError, OperationalError
|
||||
|
||||
from . import config
|
||||
from app.lib_general import log, logging
|
||||
from app.log import log
|
||||
# from app.lib_general import log, logging
|
||||
from app.log import log, logging
|
||||
|
||||
# Import the routers here first:
|
||||
from app.routers import api_crud, api, importing, account, activity_log, address, archive, archive_content, contact, cont_edu_cert, cont_edu_cert_person, event, event_badge, event_badge_template, event_exhibit, event_file, event_importing, event_location, event_person, event_person_detail, event_person_tracking, event_presentation, event_presenter, event_registration, event_session, flask_cfg, hosted_file, journal, journal_entry, log_client_viewing, lookup, membership_cfg, membership_group, membership_group_person, membership_person, membership_person_profile, membership_type, membership_type_person, order, order_line, order_cart, organization, page, person, person_user, post, post_comment, product, site, site_domain, user, websockets#, e_impexium
|
||||
@@ -23,7 +23,7 @@ from app.routers import api_crud, api, importing, account, activity_log, address
|
||||
from app.db_sql import db
|
||||
|
||||
|
||||
print('### **** *** ** * The Aether FastAPI API app is loading... * ** *** **** ###')
|
||||
print('### **** *** ** * The Aether FastAPI API is loading... * ** *** **** ###')
|
||||
|
||||
|
||||
#log = logging.getLogger('root')
|
||||
@@ -325,28 +325,38 @@ origins = [
|
||||
'https://oneskyit.com',
|
||||
'http://192.168.32.20:3000',
|
||||
'http://192.168.32.20:8080',
|
||||
'http://fastapi.localhost',
|
||||
|
||||
'http://localhost',
|
||||
'http://localhost:3000',
|
||||
'http://localhost:5000',
|
||||
'http://localhost:8080',
|
||||
'http://localhost:7800',
|
||||
'http://app-local.oneskyit.com',
|
||||
'http://cmsc.home:5000',
|
||||
'http://cmsc.localhost:5000',
|
||||
'http://connect.home:5000',
|
||||
'http://connect.localhost:5000',
|
||||
'http://demo.home:5000',
|
||||
'http://demo.localhost:5000',
|
||||
'http://dev-idaa.home:5000',
|
||||
'http://dev-idaa.localhost:5000',
|
||||
'http://dev.home:5000',
|
||||
'http://fastapi.localhost:5000',
|
||||
'http://idaa.home:5000',
|
||||
'http://idaa.localhost:5000',
|
||||
'http://ishlt.home:5000',
|
||||
'http://ishlt.localhost:5000',
|
||||
'http://svelte.localhost:5555',
|
||||
|
||||
'http://fastapi.localhost',
|
||||
|
||||
'http://api.oneskyit.local:5000',
|
||||
'http://app.oneskyit.local:5000',
|
||||
'http://fastapi.oneskyit.local:5000',
|
||||
'http://svelte.oneskyit.local:5555',
|
||||
|
||||
'http://connect.oneskyit.local:5000',
|
||||
'http://connect.oneskyit.local:5000',
|
||||
|
||||
'http://demo.oneskyit.local:5000',
|
||||
'http://demo.oneskyit.local:5000',
|
||||
|
||||
'http://dev.oneskyit.local:5000',
|
||||
'http://dev-app.oneskyit.local:5000',
|
||||
'http://dev-svelte.oneskyit.local:5555',
|
||||
|
||||
'http://dev-cmsc.oneskyit.local:5000',
|
||||
'http://dev-idaa.oneskyit.local:5000',
|
||||
'http://dev-idaa.oneskyit.local:5000',
|
||||
'http://dev-ishlt.oneskyit.local:5000',
|
||||
|
||||
'http://cmsc.oneskyit.local:5000',
|
||||
'http://idaa.oneskyit.local:5000',
|
||||
'http://ishlt.oneskyit.local:5000',
|
||||
]
|
||||
|
||||
app.add_middleware(
|
||||
@@ -367,7 +377,7 @@ async def startup():
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARN, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
log.info('The Aether FastAPI API app is starting up...')
|
||||
log.info('The Aether FastAPI API is starting up...')
|
||||
#await database.connect()
|
||||
|
||||
|
||||
@@ -376,7 +386,7 @@ async def shutdown():
|
||||
log.setLevel(logging.INFO) # DEBUG, INFO, WARN, WARNING, ERROR, EXCEPTION, CRITICAL
|
||||
log.debug(locals())
|
||||
|
||||
log.info('The Aether FastAPI API app is shutting down...')
|
||||
log.info('The Aether FastAPI API is shutting down...')
|
||||
#await database.disconnect()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user