diff --git a/code/SPUCSVi/Dockerfile b/code/SPUCSVi/Dockerfile index 1297710..f54e738 100644 --- a/code/SPUCSVi/Dockerfile +++ b/code/SPUCSVi/Dockerfile @@ -8,4 +8,4 @@ RUN pip install -r /spucsvi/requirements.txt COPY ./*.py /spucsvi/ COPY ./templates /spucsvi/templates -CMD ["gunicorn", "-w", "4", "spucsvi:app", "-b", "0.0.0.0:8322", "--log-level", "warning"] +CMD ["gunicorn", "-w", "1", "spucsvi:app", "-b", "0.0.0.0:8322", "--log-level", "warning"] diff --git a/code/SPUCSVi/spucsvi.py b/code/SPUCSVi/spucsvi.py index 8cbafc2..c57b76c 100644 --- a/code/SPUCSVi/spucsvi.py +++ b/code/SPUCSVi/spucsvi.py @@ -3,7 +3,7 @@ import logging import pandas as pd from io import StringIO -import os +import os, sys logging.basicConfig(level=logging.WARNING) logger = logging.getLogger(__name__) @@ -14,6 +14,24 @@ app = Flask(__name__) +# Print the initialization message +print( + r""" + .-'''-. .-------. ___ _ _______ .-'''-. ,---. ,---..-./`) + / _ \\ _(`)_ \.' | | | / __ \ / _ \| / | |\ .-.') + (`' )/`--'| (_ o._)|| .' | | | ,_/ \__) (`' )/`--'| | | .'/ `-' \ + (_ o _). | (_,_) /.' '_ | |,-./ ) (_ o _). | | _ | | `-'`"` + (_,_). '. | '-.-' ' ( \.-.|\ '_ '`) (_,_). '. | _( )_ | .---. + .---. \ :| | ' (`. _` /| > (_) ) __ .---. \ :\ (_ o._) / | | + \ `-' || | | (_ (_) _)( . .-'_/ )\ `-' | \ (_,_) / | | + \ / / ) \ / . \ / `-'`-' / \ / \ / | | + `-...-' `---' ``-'`-'' `._____.' `-...-' `---` '---' + + :::: SPUC Super Visualizer serving on localhost:8322 :::: +""" +) +sys.stdout.flush() + @app.route("/") def spucsvi(): @@ -62,4 +80,5 @@ def put_unicorn(): if __name__ == "__main__": + app.run()