Created port variable to make it foolproof. You never know.
This commit is contained in:
@@ -2,6 +2,8 @@ from waitress import serve
|
|||||||
from app import create_app
|
from app import create_app
|
||||||
import os
|
import os
|
||||||
|
|
||||||
|
PORT = 5000
|
||||||
|
|
||||||
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
os.chdir(os.path.dirname(os.path.abspath(__file__)))
|
||||||
|
|
||||||
serve(create_app(), port=5000)
|
serve(create_app(), port=PORT)
|
||||||
|
|||||||
Reference in New Issue
Block a user