Skip to content

Commit

Permalink
Run on different port
Browse files Browse the repository at this point in the history
  • Loading branch information
dragma-super committed Nov 18, 2019
1 parent 21f77cb commit 542fb67
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion backend/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
2 changes: 1 addition & 1 deletion backend/config/dev.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
server:
port: :8989
ui: :8080
ui: :32000

0 comments on commit 542fb67

Please sign in to comment.