forked from Ironjanowar/spotify_uri_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
44 lines (31 loc) · 739 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
MIX_ENV?=dev
deps:
mix deps.get
mix deps.compile
compile: deps
mix compile
token:
export BOT_TOKEN = $(shell cat bot.token)
export CLIENT_TOKEN = $(shell cat client.token)
start: token
_build/dev/rel/spotify_uri_bot/bin/spotify_uri_bot daemon
iex: token
iex -S mix
clean:
rm -rf _build
purge: clean
rm -rf deps
rm mix.lock
stop:
_build/dev/rel/spotify_uri_bot/bin/spotify_uri_bot stop
attach:
_build/dev/rel/spotify_uri_bot/bin/spotify_uri_bot remote
release: deps compile
mix release
debug: token
_build/dev/rel/spotify_uri_bot/bin/spotify_uri_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