Skip to content

Commit

Permalink
Some refactoring in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
AntiViruS90 committed Jan 30, 2025
1 parent 5c2a3c2 commit 821b2d1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ erd-in-png: erd-dot
erd-in-pdf: erd-dot
dot -Tpdf erd.dot -o erd.pdf

include .env
export $(shell sed 's/=.*//' .env)
load-db:
psql -U "пользователь" -d "ваша_БД" -f dump_data/dump-hexlet-friends.sql
psql -U $(POSTGRES_USER) -d $(POSTGRES_DB) -p $(POSTGRES_PORT) -f dump_data/dump-hexlet-friends.sql

compose-load-db:
docker-compose exec db psql -U ваш_пользователь -d ваша_база_данных -f /app/dump_data/dump-hexlet-friends.sql
Expand Down

0 comments on commit 821b2d1

Please sign in to comment.