Merge branch 'production'

This commit is contained in:
Samuel Tariku 2025-07-09 23:38:18 +03:00
commit 5251674fff

View File

@ -49,7 +49,9 @@ backup:
@docker exec -t fortunebet-backend-postgres-1 pg_dumpall -c -U root | gzip > backup/dump_`date +%Y-%m-%d"_"%H_%M_%S`.sql.gz
restore:
@echo "Restoring latest backup..."
gunzip -c $(file) | docker exec -i fortunebet-backend-postgres-1 psql -U root -d gh
@latest_file=$$(ls -t backup/dump_*.sql | head -n 1); \
echo "Restoring from $$latest_file"; \
gunzip -c $$latest_file | docker exec -i fortunebet-backend-postgres-1 psql -U root -d gh < $$latest_file
postgres_log:
docker logs fortunebet-backend-postgres-1
.PHONY: swagger