From 542fb6746a7914c7e9f38e7c39d8c70f753fa26b Mon Sep 17 00:00:00 2001 From: Ilkin Musayev Date: Mon, 18 Nov 2019 16:11:34 +0400 Subject: [PATCH] Run on different port --- Makefile | 2 ++ backend/config/config.go | 2 +- backend/config/dev.yaml | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 15f75ae..52fc73c 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,8 @@ build: $(MAKE) build_windows mv backend/taskr bin/ mv backend/taskr.exe bin/ + # Remove the static folder + rm backend/static -rf && mkdir backend/static @echo "Build completed, please run ./bin/taskr" cd bin/ && ls -l --block-size=M diff --git a/backend/config/config.go b/backend/config/config.go index 3b0b053..56d49d0 100644 --- a/backend/config/config.go +++ b/backend/config/config.go @@ -16,7 +16,7 @@ func Init(env string) { box = packr.NewBox("../static") config = viper.New() config.SetConfigType("yaml") - configFile := box.Bytes("dev.yaml") + configFile, _ := box.Find("dev.yaml") err := config.ReadConfig(bytes.NewBuffer(configFile)) if err != nil { log.Fatal("Cannot load the server config") diff --git a/backend/config/dev.yaml b/backend/config/dev.yaml index e559dd3..3e0cdc2 100644 --- a/backend/config/dev.yaml +++ b/backend/config/dev.yaml @@ -1,3 +1,3 @@ server: port: :8989 - ui: :8080 \ No newline at end of file + ui: :32000 \ No newline at end of file