diff --git a/src/application.py b/src/application.py index 058d8ea..5f11a8c 100644 --- a/src/application.py +++ b/src/application.py @@ -49,4 +49,4 @@ except (IndexError, KeyError): if __name__ == "__main__": - app.run("0.0.0.0") + app.run(app.config["APP_IP"], app.config["APP_PORT"]) diff --git a/src/config_lock.py b/src/config_lock.py index 09dfce6..e92f693 100644 --- a/src/config_lock.py +++ b/src/config_lock.py @@ -21,8 +21,17 @@ from src.models import db basedir = os.path.abspath(os.path.dirname(__file__)) class Config: + """ + This class contains general configuration settings that are available everywhere. + You may edit this class and the ProductionConfig class if you wish to deploy. + """ SQLALCHEMY_TRACK_MODIFICATIONS = False SQLALCHEMY_COMMIT_ON_TEARDOWN = True + # Url Settings + APP_IP = "0.0.0.0" + APP_PORT = 5000 + # Pagination + MAX_RESULTS_PER_PAGE = 10 @staticmethod def init_app(app):