Exemplo n.º 1
0
from controllers import app

if __name__ == '__main__':
    app.run()
Exemplo n.º 2
0
from controllers import app, api, Mesa, Usuario, Login, Asignacion
api.add_resource(Mesa,'/mesa','/mesa/<int:id>')
api.add_resource(Usuario,'/registro')
api.add_resource(Login,'/login')
api.add_resource(Asignacion,'/asignar')

if __name__=='__main__':
    app.run(debug=True)
Exemplo n.º 3
0
def start_app():
    import controllers.app

    app = controllers.app.Application()
    app.run()
Exemplo n.º 4
0
from controllers import app
# from OpenSSL import SSL
import start_up

start_up.start_up(app)
# context = ('server.crt', 'server.key')
# app.run(debug=True, host='0.0.0.0', port=5566, threaded=True, ssl_context=context)
# app.run(debug=True, host='0.0.0.0', port=5566, processes=10, ssl_context=context)
app.run(debug=True, host='0.0.0.0', port=5566, processes=10)
Exemplo n.º 5
0
from controllers import app
app.run(debug=True)
Exemplo n.º 6
0
Arquivo: run.py Projeto: Sytechia/ISPJ
"""
Main file that runs the application 
"""

from controllers import app

if __name__ == "__main__":
    app.run(debug=True, threaded=True)
Exemplo n.º 7
0
# -*- coding:utf-8 -*-
'''
Author: Qi Mo
Created: August 12, 2016
Version: 1.0
Update:
'''

from controllers import app
from utils.path_util import *
from utils.log_util import log_format
import logging

log_format(PROJECT_DIR + '/logs/server')

if __name__ == '__main__':
    try:
        app.run(host='0.0.0.0', port=8086,debug=True)
    except Exception as e:
        logger = logging.getLogger('server error')
        logger.exception(e)
Exemplo n.º 8
0
from controllers import app
if __name__ == '__main__':
    app.run(host='0.0.0.0', debug=True)
Exemplo n.º 9
0
# -*- coding:utf-8 -*-
'''
Author: Qi Mo
Created: August 12, 2016
Version: 1.0
Update:
'''

from controllers import app
from utils.path_util import *
from utils.log_util import log_format
import logging

log_format(PROJECT_DIR + '/logs/server')

if __name__ == '__main__':
    try:
        app.run(host='0.0.0.0', port=8086, debug=True)
    except Exception as e:
        logger = logging.getLogger('server error')
        logger.exception(e)