+1
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
APP_NAME=portfoliojournal-og
|
||||
BUILD_DIR=bin
|
||||
PORT?=8090
|
||||
|
||||
.PHONY: build run clean install-service
|
||||
|
||||
build:
|
||||
@mkdir -p $(BUILD_DIR)
|
||||
GO111MODULE=on go build -o $(BUILD_DIR)/$(APP_NAME) .
|
||||
|
||||
run:
|
||||
PORT=$(PORT) GO111MODULE=on go run .
|
||||
|
||||
clean:
|
||||
@rm -rf $(BUILD_DIR)
|
||||
|
||||
install-service: build
|
||||
@echo "Install the binary and OpenRC service using the instructions in README.md"
|
||||
Reference in New Issue
Block a user