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 )
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)
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'))