Esempio n. 1
0
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)
Esempio n. 2
0
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)
Esempio n. 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
Esempio n. 4
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