forked from BryanSLam/discord-bot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
64 lines (48 loc) · 952 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
DC=docker-compose
.PHONY: all
all: build test
.PHONY: build
build:
$(DC) build
.PHONY: build-discord-bot
build-discord-bot:
go build -o cmd/discord-bot/discord-bot cmd/discord-bot/main.go
.PHONY: build-discord-bot-linux
build-discord-bot-linux:
GOOS=linux GOARCH=amd64 go build -o cmd/discord-bot/discord-bot-linux cmd/discord-bot/main.go
.PHONY: run-discord-bot
run-discord-bot:
./cmd/discord-bot/discord-bot
.PHONY: up
up:
$(DC) up
.PHONY: down
down:
$(DC) down
.PHONY: restart
restart:
$(DC) restart
.PHONY: test-in-docker
test-in-docker:
$(DC) run bot go test ./...
.PHONY: test
test:
go test ./...
.PHONY: bash
bash:
$(DC) run bot bash
.PHONY: music
music:
$(DC) run musicbot
.PHONY: heroku-quota
heroku-quota:
heroku ps -a bigmoneybot
.PHONY: heroku-deploy
heroku-deploy:
git push heroku master
.PHONY: heroku-redis
heroku-redis:
heroku addons | grep heroku-redis
.PHONY: heroku-config
heroku-config:
heroku config