diff --git a/Procfile b/Procfile new file mode 100644 index 0000000..244c130 --- /dev/null +++ b/Procfile @@ -0,0 +1 @@ +web: gunicorn app:app --log-file=- diff --git a/app.py b/app.py index ef11ee4..797d668 100644 --- a/app.py +++ b/app.py @@ -67,9 +67,13 @@ def upload(): return {"uuid1": uuids[0], "uuid2": uuids[1]} +logs_dictio["log1"] = os.path.join("SampleEventLogs&SimulatedER2021", "running-example.xes") +logs_dictio["log2"] = os.path.join("SampleEventLogs&SimulatedER2021", "Running-example-simulated.csv") +port = os.environ.get("PORT") +if port is None: + port = "80" +port = int(port) if __name__ == "__main__": if not os.path.exists(os.path.join("static", "temp")): os.mkdir(os.path.join("static", "temp")) - logs_dictio["log1"] = os.path.join("SampleEventLogs&SimulatedER2021", "running-example.xes") - logs_dictio["log2"] = os.path.join("SampleEventLogs&SimulatedER2021", "Running-example-simulated.csv") - app.run(host='0.0.0.0') + app.run(port=port, threaded=True) diff --git a/requirements.txt b/requirements.txt index f27f792..dd8c433 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,15 +1,14 @@ pyemd==0.5.1 -plotly==5.3.1 -matplotlib==3.4.3 -pandas==1.3.3 -pm4py==2.2.15 -numpy==1.21.2 -multiset==2.1.1 +plotly==5.5.0 +matplotlib==3.5.1 +pandas==1.3.5 +pm4py==2.2.18 +numpy==1.22.0 +multiset==3.0.1 pyfpgrowth==1.0 python_Levenshtein==0.12.2 seaborn==0.11.2 -frozendict==2.0.6 +frozendict==2.1.3 Flask==2.0.2 Flask-Cors==3.0.10 - - +gunicorn diff --git a/runtime.txt b/runtime.txt new file mode 100644 index 0000000..d9a16ae --- /dev/null +++ b/runtime.txt @@ -0,0 +1 @@ +python-3.8.12 diff --git a/templates/upload.html b/templates/upload.html index cd032fa..2e0b01b 100644 --- a/templates/upload.html +++ b/templates/upload.html @@ -8,7 +8,7 @@ - Scenario-based Analysis of Processes + Interactive Business Process Comparison Using Conformance and Performance Insights - Upload Page