-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
46 lines (30 loc) · 801 Bytes
/
Makefile
File metadata and controls
46 lines (30 loc) · 801 Bytes
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
# # #
APP_NAME = angara-notify
VER_MAJOR = 1
VER_MINOR = 2
MAIN_CLASS = notify.main
JAR_NAME = notify.jar
UBER_JAR = target/${JAR_NAME}
PROD_HOST = angara
PROD_PATH = /app/notify
# # #
SHELL = bash
.EXPORT_ALL_VARIABLES:
.PHONY: dev build clean version deploy
all: clean build deploy restart
dev:
bash -c "set -a && source .env && clj -M:dev:nrepl"
build:
@mkdir -p ./target/resources
@clj -T:build uberjar
run:
CONFIG_EDN=../conf/dev.edn java -jar ${UBER_JAR}
deploy:
scp ${UBER_JAR} ${PROD_HOST}:${PROD_PATH}
restart:
ssh ${PROD_HOST} "ps ax | grep 'java -jar ${JAR_NAME}' | grep -v grep | awk '{ print \$$1 }' | xargs kill "
clean:
@clojure -T:build clean
outdated:
@clojure -Sdeps '{:deps {com.github.liquidz/antq {:mvn/version "2.11.1264"}}}' -M -m antq.core
#.