Esempio n. 1
0
from __future__ import print_function
import os
from sigh.apps import create_app


config_file = os.path.join(os.path.dirname(os.path.realpath(__file__))
                           , 'config.py')
app = create_app(config_file)


if __name__ == '__main__':
    print('URL map:')
    print(app.url_map)
    app.run(debug=True, host='0.0.0.0')
Esempio n. 2
0
import os
from sigh.apps import create_app


config_file = os.path.join(os.path.dirname(os.path.realpath(__file__))
                           , 'config.py')
application = create_app(default_config=config_file)

Esempio n. 3
0
import os
from sigh.apps import create_app


config_file = os.path.join(os.path.dirname(os.path.realpath(__file__))
                           , 'config.py')
application = create_app(config_file)