コード例 #1
0
ファイル: yeti.py プロジェクト: Heat-Miser/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")
コード例 #2
0
ファイル: yeti.py プロジェクト: 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")
コード例 #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")
コード例 #4
0
ファイル: yeti.py プロジェクト: 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")
コード例 #5
0
ファイル: yeti.py プロジェクト: carriercomm/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.INFO)

if __name__ == '__main__':
    webapp.run()
コード例 #6
0
ファイル: yeti.py プロジェクト: pythonmaster41/yeti
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")