def webserver(args): # Enable debug and autoreload in dev webapp.debug = args.debug if webapp.debug: webapp.jinja_env.auto_reload = True webapp.config['TEMPLATES_AUTO_RELOAD'] = True syncdb() print "[+] Yeti started. Point browser to http://localhost:5000/{}".format(" (debug)" if args.debug else "") webapp.run(host="0.0.0.0")
def webserver(args): # Enable debug and autoreload in dev webapp.debug = args.debug if webapp.debug: webapp.jinja_env.auto_reload = True webapp.config['TEMPLATES_AUTO_RELOAD'] = True syncdb() print("[+] Yeti started. Point browser to http://localhost:5000/{}".format( " (debug)" if args.debug else "")) webapp.run(host="0.0.0.0")
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from core.web import webapp logging.basicConfig(format='%(levelname)s:%(module)s:%(message)s', level=logging.ERROR) if __name__ == '__main__': print "[+] Yeti started. Point browser to http://localhost:5000/" webapp.run(host="0.0.0.0")
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from core.web import webapp logging.basicConfig(format='%(levelname)s:%(module)s:%(message)s', level=logging.ERROR) if __name__ == '__main__': webapp.run(host="0.0.0.0")
#!/usr/bin/env python # -*- coding: utf-8 -*- import logging from core.web import webapp logging.basicConfig(format='%(levelname)s:%(module)s:%(message)s', level=logging.INFO) if __name__ == '__main__': webapp.run()
def webserver(args): from core.web import webapp webapp.debug = args.debug syncdb() print "[+] Yeti started. Point browser to http://localhost:5000/{}".format(" (debug)" if args.debug else "") webapp.run(host="0.0.0.0")