diff --git a/dt-cart/gunicorn.sh b/dt-cart/gunicorn.sh index 855c1e3..0537ae7 100644 --- a/dt-cart/gunicorn.sh +++ b/dt-cart/gunicorn.sh @@ -1,2 +1,2 @@ #!/bin/bash -gunicorn -w 4 -b 127.0.0.1:8000 run:main \ No newline at end of file +gunicorn -w 4 -b 0.0.0.0:8000 run:app \ No newline at end of file diff --git a/dt-cart/run.py b/dt-cart/run.py index 946431b..8fe0f42 100644 --- a/dt-cart/run.py +++ b/dt-cart/run.py @@ -12,9 +12,5 @@ def debug(): ) -def main(): - app.run() - - if __name__ == "__main__": debug() diff --git a/dt-cart/service.run b/dt-cart/service.run index 42350da..fa93909 100644 --- a/dt-cart/service.run +++ b/dt-cart/service.run @@ -1,2 +1,2 @@ #!/bin/sh -poetry run service.run > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log & \ No newline at end of file +/home/athene/.local/bin/poetry run ./gunicorn.sh > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log & \ No newline at end of file