def run(self): scanner.scan(self.package, self.serverOnly) if not self.serverOnly: bundleComponent.produceMonoliths() if not self.compileOnly: self.startServer() self.watch()
def runSimple(package): scanner.scan(package, True) app = createApp(True) from werkzeug.serving import run_simple run_simple('localhost', 4000, app)