2022-08-09 16:25:11 +00:00
|
|
|
# Code generated by gouick; DO NOT EDIT.
|
|
|
|
|
2022-09-21 21:54:13 +00:00
|
|
|
{{ if eq (len .APIs) 1 }}
|
|
|
|
api:
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@echo "\tLaunch API '{{ (index .APIs 0).Binary }}'"
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@PORT=${PORT:-3000} HOST=${HOST:-0.0.0.0} \
|
|
|
|
go run cmd/{{ (index .APIs 0).Binary }}/*
|
|
|
|
{{ else if gt (len .APIs) 1 }}
|
|
|
|
{{- range .APIs -}}
|
|
|
|
{{.Binary}}
|
|
|
|
{{ end }}:
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@echo "\tLaunch API '$@'"
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@PORT=${PORT:-3000} HOST=${HOST:-0.0.0.0} \
|
|
|
|
go run cmd/$@/main.go
|
|
|
|
{{ end }}
|
2022-08-09 16:25:11 +00:00
|
|
|
|
2022-09-21 21:54:13 +00:00
|
|
|
{{- if ne (len .Workers) 0 }}
|
|
|
|
{{- range .Workers -}}
|
|
|
|
{{.Binary}}
|
|
|
|
{{ end }}:
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@echo "\tLaunch worker '$@'"
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@PORT=${PORT:-3000} HOST=${HOST:-0.0.0.0} \
|
|
|
|
go run cmd/$@/main.go
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
{{- if ne (len .Crons) 0 }}
|
|
|
|
{{- range .Crons -}}
|
|
|
|
{{.Binary}}
|
|
|
|
{{ end }}:
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@echo "\tLaunch cron '$@'"
|
|
|
|
@echo "++++++++++++++++++++++++++++++++++++++++++++++++++++++++++"
|
|
|
|
@PORT=${PORT:-3000} HOST=${HOST:-0.0.0.0} \
|
|
|
|
go run cmd/$@/main.go
|
|
|
|
{{ end }}
|
2022-08-09 16:25:11 +00:00
|
|
|
|
|
|
|
generate:
|
2022-09-21 21:54:13 +00:00
|
|
|
@gouick generate
|
|
|
|
|
|
|
|
test:
|
|
|
|
@gouick test
|
2022-08-09 16:25:11 +00:00
|
|
|
|
2022-09-21 21:54:13 +00:00
|
|
|
.PHONY: api generate test
|