Skip to content

Commit

Permalink
chore: use goreman to start principal and agent (#187)
Browse files Browse the repository at this point in the history
Signed-off-by: Jayendra Parsai <[email protected]>
Co-authored-by: Jayendra Parsai <[email protected]>
  • Loading branch information
jparsai and Jayendra Parsai authored Nov 29, 2024
1 parent a959b0e commit 206a7a3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
10 changes: 10 additions & 0 deletions hack/demo-env/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
AUTONOMOUS_MODE?=false
GOBIN=$(shell go env GOPATH)/bin

.PHONY: start-local
start-local:
AUTONOMOUS_MODE=$(AUTONOMOUS_MODE) $(GOBIN)/goreman -set-ports=false -f Procfile start

.PHONY: help
help:
@echo "Not yet, sorry."
2 changes: 2 additions & 0 deletions hack/demo-env/Procfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
principal: ./start-principal.sh
agent: sleep 15s && if [ "$AUTONOMOUS_MODE" = "true" ]; then ./start-agent-autonomous.sh; else ./start-agent-managed.sh; fi

0 comments on commit 206a7a3

Please sign in to comment.