from controllers import app if __name__ == '__main__': app.run()
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)
def start_app(): import controllers.app app = controllers.app.Application() app.run()
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)
from controllers import app app.run(debug=True)
""" Main file that runs the application """ from controllers import app if __name__ == "__main__": app.run(debug=True, threaded=True)
# -*- 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)
from controllers import app if __name__ == '__main__': app.run(host='0.0.0.0', debug=True)
# -*- 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)