20 lines
504 B
Python
Executable File
20 lines
504 B
Python
Executable File
#!/usr/bin/env python2
|
|
'''
|
|
Flask standalone server. Intended for development use only.
|
|
|
|
With this script flask will spawn a http server bound to socket 127.0.0.1:5000.
|
|
Per default, debugging is turned on. On any changes to the flask application
|
|
source files, the server will automatically reload.
|
|
|
|
'''
|
|
|
|
from flask_d3d3 import app
|
|
|
|
|
|
if __name__ == "__main__":
|
|
port = 5000
|
|
|
|
# Set up the development server on port 8000.
|
|
app.debug = True
|
|
app.run(host='127.0.0.1', port=port, threaded=False)
|