server.py 483 B

1234567891011121314151617181920
  1. #!/usr/bin/env python
  2. import logging
  3. from logging.config import dictConfig
  4. # Environment must be set before importing the app factory function.
  5. import lakesuperior.env_setup
  6. from lakesuperior.config_parser import config
  7. from lakesuperior.globals import AppGlobals
  8. from lakesuperior.env import env
  9. from lakesuperior.app import create_app
  10. dictConfig(env.config['logging'])
  11. fcrepo = create_app(env.config['application'])
  12. if __name__ == "__main__":
  13. fcrepo.run(host='0.0.0.0')