blob: a452c4799f8960c3e8c9e179395c370aace9f039 (
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 & 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
|