aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 759e09f7855de109486dae988ed7a601df1595c1 (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
DB=sslmode=disable dbname=lastfm

all: kill build start

build:
	go build .

kill:
	-kill $$(cat pid)
	-rm -f pid

start:
	./lastfm & echo $$! > pid

watch:
	watchman-make -p '*.go' 'templates/*.tmpl' -t all

up:
	goose -dir migrations postgres "$(DB)" up

down:
	goose -dir migrations postgres "$(DB)" down

status:
	goose -dir migrations postgres "$(DB)" status