aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e8a9cb49783ccc6187bd8e38a3b548028fd28dd1 (plain)
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
.PHONY: migrate unmigrate rollback dev halt rs

migrate:
	TERN_CONFIG=migrations/tern.conf TERN_MIGRATIONS=migrations tern migrate

unmigrate:
	TERN_CONFIG=migrations/tern.conf TERN_MIGRATIONS=migrations tern migrate -d 0

rollback:
	TERN_CONFIG=migrations/tern.conf TERN_MIGRATIONS=migrations tern migrate -d -1

run:
	go run ./src/main.go

build:
	go build -o newsstand ./src/main.go

dev:
	podman compose up -d

halt:
	podman compose down

rs:
	podman compose up --build -d server

seed: unmigrate migrate
	go run ./seed/main.go