예제 #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'))