Fix startup scripts

This commit is contained in:
Aleksey Filippov 2025-03-11 23:35:18 +04:00
parent 3a03be0fb1
commit dc3d3620b7
3 changed files with 2 additions and 6 deletions

View File

@ -1,2 +1,2 @@
#!/bin/bash
gunicorn -w 4 -b 127.0.0.1:8000 run:main
gunicorn -w 4 -b 0.0.0.0:8000 run:app

View File

@ -12,9 +12,5 @@ def debug():
)
def main():
app.run()
if __name__ == "__main__":
debug()

View File

@ -1,2 +1,2 @@
#!/bin/sh
poetry run service.run > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log &
/home/athene/.local/bin/poetry run ./gunicorn.sh > /var/log/athene/dt-cart-$(date +%Y-%m-%d-%H-%M-%S).log &