aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 6c081d28c8ce1e7b10987a53bd303586776af803 (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=$(shell cat config.json | jq '.Database')

all: kill build start

build:
	go build .

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

start:
	./lastfm-api & 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