-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (32 loc) · 763 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
MIX_ENV?=dev
deps:
mix deps.get
mix deps.compile
compile: deps
mix compile
token:
include .env
export $(shell sed 's/=.*//' .env)
export BOT_TOKEN = $(shell cat bot.token)
start: token
_build/dev/rel/openlibra_spam_bot/bin/openlibra_spam_bot daemon
iex: token
iex -S mix
clean:
rm -rf _build
purge: clean
rm -rf deps
rm mix.lock
stop:
_build/dev/rel/openlibra_spam_bot/bin/openlibra_spam_bot stop
attach:
_build/dev/rel/openlibra_spam_bot/bin/openlibra_spam_bot remote
release: deps compile
mix release
debug: token
_build/dev/rel/openlibra_spam_bot/bin/openlibra_spam_bot console
error_logs:
tail -n 20 -f log/error.log
debug_logs:
tail -n 20 -f log/debug.log
.PHONY: deps compile release start clean purge token iex stop attach debug