mirror of
https://github.com/0x1d/rcond.git
synced 2025-12-14 18:25:21 +01:00
feat: introduce YAML configuration
This commit is contained in:
8
Makefile
8
Makefile
@@ -1,5 +1,5 @@
|
||||
SHELL := bash
|
||||
ARCH ?= arm64
|
||||
ARCH ?= amd64
|
||||
ADDR ?= 0.0.0.0:8080
|
||||
|
||||
generate:
|
||||
@@ -11,10 +11,12 @@ build:
|
||||
env GOOS=linux GOARCH=${ARCH} go build -o bin/rcond-${ARCH} ./cmd/rcond/main.go
|
||||
|
||||
run:
|
||||
source .env && bin/rcond-${ARCH} ${ADDR}
|
||||
bin/rcond-${ARCH} -config config.yaml
|
||||
|
||||
dev:
|
||||
RCOND_API_TOKEN=1234567890 go run cmd/rcond/main.go
|
||||
RCOND_ADDR=127.0.0.1:8080 \
|
||||
RCOND_API_TOKEN=1234567890 \
|
||||
go run cmd/rcond/main.go
|
||||
|
||||
upload:
|
||||
scp bin/rcond-${ARCH} pi@rpi-test:/home/pi/rcond
|
||||
|
||||
Reference in New Issue
Block a user