Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to close a flask web server with python

from multiprocessing import Process

server = Process(target=app.run)
server.start()
# ...
server.terminate()
server.join()
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #close #flask #web #server #python
ADD COMMENT
Topic
Name
4+6 =