Merge branch 'production'
This commit is contained in:
commit
5251674fff
4
makefile
4
makefile
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user