generated from jphacks/JP_sample
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (32 loc) · 966 Bytes
/
Makefile
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
41
42
43
run:
docker compose up -d
build:
docker compose build
down:
docker compose down
db-push:
docker compose run --rm app npx prisma db push
docker compose run --rm app npx prisma generate
db-seed:
docker compose run --rm app npx prisma db seed
migrate:
docker compose run --rm app npx prisma migrate deploy
# execじゃないとstudioに接続できない
studio:
docker compose exec app npx prisma studio
check:
docker compose run --rm app npm run check
lint:
docker compose run --rm app npm run lint
prod-build:
docker compose -f compose.prod.yml build
docker compose -f compose.prod.yml run --rm app npm ci
make prod-db
docker compose -f compose.prod.yml run --rm app npm run build
prod-db:
docker compose -f compose.prod.yml up db -d
sleep 10
docker compose -f compose.prod.yml run --rm app npx prisma generate
docker compose -f compose.prod.yml run --rm app npx prisma migrate deploy
prod-run:
docker compose -f compose.prod.yml up -d