-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
20 lines (16 loc) · 586 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Restoring database. See more info dumps/README.MD
restore-db:
scripts/restore_database.sh
# Get IP Address of the Database Container
db-host:
@echo "Retrieving IP address of the Docker container..."
@docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' flibusta-telegram-bot-db-1
alembic-revision:
read -p "Enter name of migration: " $message
docker-compose exec bot alembic revision --autogenerate -m "$message"
alembic-upgrade:
docker-compose exec bot alembic upgrade head
clean-db:
docker-compose down -v
sudo rm -rf ./data/
docker volume prune