Esempio n. 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")
Esempio n. 2
0
File: yeti.py Progetto: 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")
Esempio n. 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")
Esempio n. 4
0
File: yeti.py Progetto: 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")
Esempio n. 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()
Esempio n. 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")