Example #1
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")
Example #2
0
File: yeti.py Project: tdr0/yeti
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")
Example #3
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")
Example #4
0
File: yeti.py Project: tomchop/yeti
#!/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")
Example #5
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()
Example #6
0
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")