-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 812 Bytes
/
Makefile
File metadata and controls
40 lines (29 loc) · 812 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
31
32
33
34
35
36
37
38
39
40
VOLUME=$(shell basename $(PWD))
develop: clean build migrations.run run
# develop: clean build run
clean:
docker compose rm -vf
build:
docker compose build
run:
docker compose up
frontend-shell:
docker compose run frontend \
sh
backend-shell:
docker compose run backend \
sh
postgres.data.delete: clean
docker volume rm $(VOLUME)_postgres
postgres.start:
docker compose up -d postgres
docker compose exec postgres \
sh -c 'while ! nc -z postgres 5432; do sleep 0.1; done'
postgres-shell: postgres.start
docker exec -it $(VOLUME)_postgres_1 sh
migrations.blank:
docker compose up -d backend
docker compose exec backend npx sequelize-cli migration:generate --name migration-skeleton
migrations.run:
docker compose up -d backend
docker compose exec backend npx sequelize-cli db:migrate