Fix: build

Signed-off-by: Thomas Klaehn <thomas.klaehn@perinet.io>
This commit is contained in:
Thomas Klaehn 2023-02-09 10:22:38 +01:00
parent 109b64cdbd
commit 7575193024
3 changed files with 3 additions and 5 deletions

4
.gitignore vendored
View File

@ -1,10 +1,8 @@
/node_modules/ /node_modules/
/public/build/ /build/
.DS_Store .DS_Store
__debug_bin __debug_bin
bin/
static/
homeservice.tar.gz homeservice.tar.gz

View File

@ -7,7 +7,7 @@ SYSTEM_DIR := /usr/lib/systemd/system
WEB_DIR := /var/lib/$(PROJECT_NAME) WEB_DIR := /var/lib/$(PROJECT_NAME)
CONFIG_FILE := config/config.json CONFIG_FILE := config/config.json
BIN_FILE := bin/$(PROJECT_NAME) BIN_FILE := build/bin/$(PROJECT_NAME)
UNIT_FILE := $(PROJECT_NAME).service UNIT_FILE := $(PROJECT_NAME).service
README_FILE := README.md README_FILE := README.md

View File

@ -74,7 +74,7 @@ func main() {
logger.Println("starting") logger.Println("starting")
var webui_path string var webui_path string
flag.StringVar(&webui_path, "d", "./static", "Specify path to serve the web ui. Default is ./static") flag.StringVar(&webui_path, "d", "./build/webui", "Specify path to serve the web ui. Default is ./static")
flag.Parse() flag.Parse()
// MQTT connection // MQTT connection