Esempio n. 1
0
# Copyright (c) 2015-2021 Anish Athalye ([email protected])
#
# This software is released under AGPLv3. See the included LICENSE.txt for
# details.

if __name__ == '__main__':
    from gavel import app
    import os

    extra_files = []
    if os.environ.get('DEBUG', False):
        app.debug = True
        extra_files.append('./config.yaml')

    app.run(host='0.0.0.0',
            port=os.environ.get('PORT', 5000),
            extra_files=extra_files)
Esempio n. 2
0
# Copyright (c) 2015-2018 Anish Athalye ([email protected])
#
# This software is released under AGPLv3. See the included LICENSE.txt for
# details.

if __name__ == '__main__':
    from gavel import app
    from gavel.settings import PORT
    import os

    extra_files = []
    if os.environ.get('DEBUG', False):
        app.debug = True
        extra_files.append('./config.yaml')

    app.jinja_env.cache = {}

    app.run(host='0.0.0.0', port=PORT, extra_files=extra_files, threaded=True)
# Copyright (c) 2015-2019 Anish Athalye ([email protected])
#
# This software is released under AGPLv3. See the included LICENSE.txt for
# details.

if __name__ == '__main__':
    from gavel import app
    from gavel.settings import PORT
    import os

    extra_files = []
    if os.environ.get('DEBUG', False):
        app.debug = True
        extra_files.append('./config.yaml')

    app.run(
        host='0.0.0.0',
        port=PORT,
        extra_files=extra_files
    )
Esempio n. 4
0
# Copyright (c) 2015-2019 Anish Athalye ([email protected])
#
# This software is released under AGPLv3. See the included LICENSE.txt for
# details.

if __name__ == '__main__':
    from gavel import app
    from gavel.settings import PORT
    import os

    extra_files = []
    if os.environ.get('DEBUG', True):
        app.debug = True
        extra_files.append('./config.yaml')

    app.run(host='127.0.0.1', port=PORT, extra_files=extra_files)