def main(argv=None): ''' Main function to run the server ''' if not argv: argv = 'settings.dev.py' config = os.path.abspath(argv) app = generate_app(config) if app.debug: app.run('0.0.0.0') else: app.run() return 0
#!/usr/bin/env python import os from apps import generate_app app = generate_app(os.path.abspath('settings.prod.py'))