fix: Speed up the dev server by only using the default host
All checks were successful
Build Docker / Build Image (push) Successful in 51s
All checks were successful
Build Docker / Build Image (push) Successful in 51s
This commit is contained in:
5
main.py
5
main.py
@@ -1645,8 +1645,9 @@ def page_not_found(e):
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
|
#TODO add parsing to allow for custom port and host
|
||||||
# Check to see if --debug is in the command line arguments
|
# Check to see if --debug is in the command line arguments
|
||||||
if "--debug" in sys.argv:
|
if "--debug" in sys.argv:
|
||||||
app.run(debug=True,host='0.0.0.0')
|
app.run(debug=True)
|
||||||
else:
|
else:
|
||||||
app.run(host='0.0.0.0')
|
app.run()
|
||||||
|
|||||||
Reference in New Issue
Block a user