server.py 637 B

1234567891011121314151617181920212223
  1. import logging
  2. from logging.config import dictConfig
  3. # Environment must be set before importing the app factory function.
  4. import lakesuperior.env_setup
  5. from lakesuperior.config_parser import config
  6. from lakesuperior.globals import AppGlobals
  7. from lakesuperior.env import env
  8. #import threading
  9. #logger = logging.getLogger(__name__)
  10. #logger.debug('In main: {}'.format(threading.current_thread()), stack_info=True)
  11. #print('Env: {}'.format(env.__dict__))
  12. from lakesuperior.app import create_app
  13. dictConfig(env.config['logging'])
  14. fcrepo = create_app(env.config['application'])
  15. if __name__ == "__main__":
  16. fcrepo.run(host='0.0.0.0')