-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
54 lines (45 loc) · 1009 Bytes
/
Taskfile.yaml
File metadata and controls
54 lines (45 loc) · 1009 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
47
48
49
50
51
52
53
54
version: "3"
env:
MONGO_NAME: mongo
tasks:
mongo:
deps:
- clean
desc: Spins up a docker container running mongo
cmds:
- docker run --name {{.MONGO_NAME}} -p 27017:27017
-d {{.MONGO_NAME}}
clean:
desc: gets rid of all resident things to start the slate clean
ignore_error: true
cmds:
- docker stop {{.MONGO_NAME}}
- docker rm {{.MONGO_NAME}}
- task: go:clean
webserver:
desc: Spins up the web server
dir: code/client
deps:
- go:build
cmds:
- DBHOST=127.0.0.1 PORT=8080 ./webserver
go:build:
desc: Builds the go executable
dir: code/client
deps:
- go:clean
cmds:
- go build -o webserver main.go model.go
go:clean:
desc: Cleans the go executable
dir: code/client
ignore_error: true
cmds:
- rm webserver
run:
desc: Gets the whole thing running in one shot
deps:
- clean
cmds:
- task: mongo
- task: webserver