-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (26 loc) · 756 Bytes
/
Makefile
File metadata and controls
30 lines (26 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
db-shell:
psql -U ${PG_USERNAME} -h ${PG_HOST} \
-p ${PG_PORT} -d ${PG_DBNAME}
db-up:
docker compose -f docker-compose-local.yml up -d
migrate: scripts/migrate.sh
PG_HOST=${PG_HOST} \
PG_USERNAME=${PG_USERNAME} \
PG_PORT=${PG_PORT} \
PG_DBNAME=${PG_DBNAME} \
PG_PASSWORD=${PG_PASSWORD} \
MIGRATE_OPTION=up ENV=local scripts/migrate.sh
migrate-down: scripts/migrate.sh
PG_HOST=${PG_HOST} \
PG_USERNAME=${PG_USERNAME} \
PG_PORT=${PG_PORT} \
PG_DBNAME=${PG_DBNAME} \
PG_PASSWORD=${PG_PASSWORD} \
MIGRATE_OPTION=down ENV=local scripts/migrate.sh
seed: scripts/seed.sh
PG_HOST=${PG_HOST} \
PG_USERNAME=${PG_USERNAME} \
PG_PORT=${PG_PORT} \
PG_DBNAME=${PG_DBNAME} \
PG_PASSWORD=${PG_PASSWORD} \
SEED_OPTION=up ENV=local scripts/seed.sh