Esempio n. 1
0
def main():
    app = create_app()

    app.run(host='127.0.0.1', port=9088)
Esempio n. 2
0
import sys
import os
from optparse import OptionParser

root_dir = os.path.dirname(os.path.abspath(__file__))
lib_dir = os.path.join(root_dir, 'lib')
sys.path.insert(0, lib_dir)

from portal.app import create_app

if __name__ == '__main__':
    app = create_app()
    parser = OptionParser()
    parser.add_option("-d", "--debug",
                  action="store_true", dest="debug", default=False,
                  help="activate the flask debugger")
    (options, args) = parser.parse_args()
    app.debug = options.debug
    app.run()
Esempio n. 3
0
import sys
import os
from optparse import OptionParser

root_dir = os.path.dirname(os.path.abspath(__file__))
lib_dir = os.path.join(root_dir, 'lib')
sys.path.insert(0, lib_dir)

from portal.app import create_app

if __name__ == '__main__':
    app = create_app()
    parser = OptionParser()
    parser.add_option("-d",
                      "--debug",
                      action="store_true",
                      dest="debug",
                      default=False,
                      help="activate the flask debugger")
    (options, args) = parser.parse_args()
    app.debug = options.debug
    app.run()
Esempio n. 4
0
def main():
    app = create_app()

    app.run(host='127.0.0.1', port=9088)
Esempio n. 5
0
    def create_app(self):
        """Create and return a testing flask app."""

        self.__app = create_app(TestConfig)
        return self.__app