view piecrust/wsgiutil/__init__.py @ 758:6abb436fea5b

publish: Make publisher more powerful and better exposed on the command line. * Make the `chef publish` command have one sub-command per publish target. * Add custom argument parsing per publisher to have strong extra arguments available per publish target. * Make publish targets a first class citizen of the `PieCrust` app class.
author Ludovic Chabant <ludovic@chabant.com>
date Sat, 25 Jun 2016 17:03:29 -0700
parents 81d9c3a3a0b5
children b4156f5d4368
line wrap: on
line source

from piecrust.serving.server import WsgiServer


def get_app(root_dir, cache_key='prod', enable_debug_info=False):
    app = WsgiServer(root_dir,
                     cache_key=cache_key,
                     enable_debug_info=enable_debug_info)
    return app