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