コード例 #1
0
ファイル: app.py プロジェクト: hafeez3000/wnframework
def serve(port=8000, profile=False):
	webnotes.validate_versions()
	global application
	from werkzeug.serving import run_simple
	if profile:
		application = ProfilerMiddleware(application)
	run_simple('0.0.0.0', int(port), application, use_reloader=True, 
		use_debugger=True, use_evalex=True)
コード例 #2
0
ファイル: app.py プロジェクト: miguelfontanes/wnframework
def serve(port=8000, profile=False):
    webnotes.validate_versions()
    global application
    from werkzeug.serving import run_simple
    if profile:
        application = ProfilerMiddleware(application)
    run_simple('0.0.0.0',
               int(port),
               application,
               use_reloader=True,
               use_debugger=True,
               use_evalex=True)
コード例 #3
0
def bundle(no_compress, cms_make=True):
    """concat / minify js files"""
    # build js files
    webnotes.validate_versions()
    check_public()
    check_lang()
    bundle = Bundle()
    bundle.no_compress = no_compress
    bundle.make()

    if cms_make:
        try:
            from startup.event_handlers import on_build
            on_build()
        except ImportError, e:
            pass
コード例 #4
0
ファイル: build.py プロジェクト: Halfnhav/wnframework
def bundle(no_compress, cms_make=True):
	"""concat / minify js files"""
	# build js files
	webnotes.validate_versions()
	check_public()
	check_lang()
	bundle = Bundle()
	bundle.no_compress = no_compress
	bundle.make()

	if cms_make:
		try:
			from startup.event_handlers import on_build
			on_build()
		except ImportError, e:
			pass