From dc3d3620b78a40259943c70890f9d164a75e19a6 Mon Sep 17 00:00:00 2001 From: Aleksey Filippov Date: Tue, 11 Mar 2025 23:35:18 +0400 Subject: [PATCH] Fix startup scripts --- dt-cart/gunicorn.sh | 2 +- dt-cart/run.py | 4 ---- dt-cart/service.run | 2 +- 3 files changed, 2 insertions(+), 6 deletions(-) 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