Revert "finished"

This reverts commit 7329d94740.
This commit is contained in:
2026-11-07 11:15:20 +03:00
parent 7329d94740
commit bd0b33e273
31 changed files with 4 additions and 1662 deletions
-21
View File
@@ -1,21 +0,0 @@
#!/usr/bin/env python3
"""Restart API, PostgreSQL and Redis without removing named volumes."""
from pathlib import Path
import subprocess
import sys
ROOT = Path(__file__).resolve().parents[1]
def main() -> int:
env_file = ROOT / ".env"
cmd = ["docker", "compose"]
if env_file.is_file():
cmd.extend(["--env-file", str(env_file)])
cmd.extend(["restart", "postgres", "redis", "api"])
proc = subprocess.run(cmd, cwd=ROOT)
return proc.returncode
if __name__ == "__main__":
sys.exit(main())