-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (37 loc) · 1.22 KB
/
Makefile
File metadata and controls
51 lines (37 loc) · 1.22 KB
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
44
45
46
47
48
49
50
51
####################################################################################################
# DOCKER
####################################################################################################
export BUILDKIT_PROGRESS = plain
DOCKER_BUILD_OPT = --force-recreate --build
up:
docker compose up -d $(DOCKER_BUILD_OPT)
down:
docker compose down
rebuild:
docker compose up -d auth $(DOCKER_BUILD_OPT)
####################################################################################################
# DEVELOPMENT
####################################################################################################
i-cw:
cargo install cargo-watch
w-c:
cargo watch -x check
w-b:
cargo watch -x build
w-r:
cargo watch -x 'run --bin app'
####################################################################################################
# DATABASE
####################################################################################################
database-env:
export $$(cat .env | grep DATABASE_URL)
mi:
sea-orm-cli init
mg:
sea-orm-cli generate create_user_table
mge:
sea-orm-cli generate entity -o src/module/user/entity
mup: database-env
sea-orm-cli migrate up
mdown: database-env
sea-orm-cli migrate down