-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (33 loc) · 832 Bytes
/
Makefile
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
.PHONY: docker encode deploy
HOST = web01.trinitynashville.org
VERSION = $(shell git ver)
WAR = app/target/app.war
ring:
cd app && lein ring server-headless
test:
./Build.hs test-jetty
run:
./Build.hs run-jetty
clean:
./Build.hs clean
docker:
./Build.hs docker-run
gcr:
./Build.hs update-gcr
load-media:
./Build.hs load-media
restart:
ssh ubuntu@$(HOST) sudo svc -tu /etc/service/jetty
$(WAR):
./Build.hs $(WAR)
upload: $(WAR)
scp $(WAR) deploy@$(HOST):jetty/webapps/triweb.war
deploy: upload restart
converge:
sudo bin/provision
$(DATE).mp3:
./getfile
encode: $(DATE).mp3
# ghc -O2 -o encode -ddump-minimal-imports bin/encode
nix-shell --command "bin/encode.hs --setDate $(DATE) --imagePath app/resources/static/img/podcast5.png $(DATE).mp3 <app/search/source/$(DATE).json"
./Build.hs app/project.clj