1234567891011121314151617181920 |
- #!/usr/bin/env python
- import logging
- from logging.config import dictConfig
- # Environment must be set before importing the app factory function.
- import lakesuperior.env_setup
- from lakesuperior.config_parser import config
- from lakesuperior.globals import AppGlobals
- from lakesuperior.env import env
- from lakesuperior.app import create_app
- dictConfig(env.config['logging'])
- fcrepo = create_app(env.config['application'])
- if __name__ == "__main__":
- fcrepo.run(host='0.0.0.0')
|