diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 1472ce9..98ee50a 100755 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,7 +5,8 @@ "containerEnv": { "HOST_PROJECT_PATH": "${localWorkspaceFolder}", "PROJECT_NAME": "${localWorkspaceFolderBasename}", - "PROJECT_PATH": "${containerWorkspaceFolder}" + "PROJECT_PATH": "${containerWorkspaceFolder}", + "FLASK_DEBUG": "True" }, // Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile "build": { diff --git a/app/app.py b/app/app.py index 10e83cd..c42f766 100644 --- a/app/app.py +++ b/app/app.py @@ -1,3 +1,4 @@ +import os from flask import Flask, render_template, request import requests from selenium import webdriver @@ -39,4 +40,4 @@ def index(): return render_template('index.html', url=url) if __name__ == '__main__': - app.run(debug=True) \ No newline at end of file + app.run(host='0.0.0.0', port=5000, debug=os.environ.get("FLASK_DEBUG", "False")) \ No newline at end of file