示例#1
0
文件: cli.py 项目: danellis/dextrose
 def run(self, args):
     from werkzeug.serving import run_simple
     app = load_application(args.package, args.environment)
     wsgi = app.wsgi
     for middleware in app.config['middleware']:
         factory = import_string(middleware)
         wsgi = factory(app, wsgi)
     compiler = StaticFileCompiler([SassCompiler, CoffeeScriptCompiler])
     static_files = compiler.compile_all(os.path.join(app.directory, 'static'))
     run_simple(
         'localhost', 5000, wsgi,
         use_reloader=args.reloader, use_debugger=True, use_evalex=True,
         threaded=False, processes=1, extra_files=static_files
     )
示例#2
0
文件: cli.py 项目: danellis/dextrose
 def run(self, args):
     from werkzeug.serving import run_simple
     app = load_application(args.package, args.environment)
     wsgi = app.wsgi
     for middleware in app.config['middleware']:
         factory = import_string(middleware)
         wsgi = factory(app, wsgi)
     compiler = StaticFileCompiler([SassCompiler, CoffeeScriptCompiler])
     static_files = compiler.compile_all(
         os.path.join(app.directory, 'static'))
     run_simple('localhost',
                5000,
                wsgi,
                use_reloader=args.reloader,
                use_debugger=True,
                use_evalex=True,
                threaded=False,
                processes=1,
                extra_files=static_files)
示例#3
0
文件: cli.py 项目: danellis/dextrose
 def run(self, args):
     module = import_module(args.package)
     directory = os.path.dirname(module.__file__)
     compiler = StaticFileCompiler([SassCompiler, CoffeeScriptCompiler])
     compiler.compile_all(os.path.join(directory, 'static'))
示例#4
0
文件: cli.py 项目: danellis/dextrose
 def run(self, args):
     module = import_module(args.package)
     directory = os.path.dirname(module.__file__)
     compiler = StaticFileCompiler([SassCompiler, CoffeeScriptCompiler])
     compiler.compile_all(os.path.join(directory, 'static'))