Compare commits
2 commits
baa7527fb5
...
c393ecd0dc
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
c393ecd0dc | ||
|
|
902bb3a854 |
|
|
@ -29,10 +29,10 @@ go build -o client ./cmd/client
|
||||||
task check
|
task check
|
||||||
|
|
||||||
# Start server
|
# Start server
|
||||||
task server -- -config config.yaml
|
task server
|
||||||
|
|
||||||
# Connect client
|
# Connect client
|
||||||
task client -- --addr=localhost:8080
|
task client
|
||||||
|
|
||||||
# Run tests
|
# Run tests
|
||||||
task test
|
task test
|
||||||
|
|
|
||||||
|
|
@ -98,7 +98,7 @@ tasks:
|
||||||
desc: Build and run the server
|
desc: Build and run the server
|
||||||
cmds:
|
cmds:
|
||||||
- go build -o hash-of-wisdom ./cmd/server
|
- go build -o hash-of-wisdom ./cmd/server
|
||||||
- ./hash-of-wisdom {{.CLI_ARGS}}
|
- ./hash-of-wisdom
|
||||||
|
|
||||||
server-config:
|
server-config:
|
||||||
desc: Build and run the server with custom config
|
desc: Build and run the server with custom config
|
||||||
|
|
@ -110,7 +110,7 @@ tasks:
|
||||||
desc: Build and run the client
|
desc: Build and run the client
|
||||||
cmds:
|
cmds:
|
||||||
- go build -o client ./cmd/client
|
- go build -o client ./cmd/client
|
||||||
- ./client {{.CLI_ARGS | default "-addr localhost:8080"}}
|
- ./client -addr {{.ADDR | default "localhost:8080"}}
|
||||||
|
|
||||||
docker-build:
|
docker-build:
|
||||||
desc: Build Docker image
|
desc: Build Docker image
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue