0356e7e210
Makes the development server accessible from the local network without editing code. HOST and PORT environment variables can still be used to restrict binding.
11 lines
225 B
Python
11 lines
225 B
Python
import os
|
|
|
|
from app import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
host = os.environ.get("HOST", "0.0.0.0")
|
|
port = int(os.environ.get("PORT", "5000"))
|
|
app.run(host=host, port=port, debug=False)
|