server.py 738 B

1234567891011121314151617181920212223242526
  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. logger = logging.getLogger(__name__)
  12. logger.info('Graph store location: {}'.format(
  13. env.config['application']['store']['ldp_rs']['location']))
  14. logger.info('Binary store location: {}'.format(
  15. env.config['application']['store']['ldp_nr']['path']))
  16. fcrepo = create_app(env.config['application'])
  17. if __name__ == "__main__":
  18. fcrepo.run(host='0.0.0.0')