diff options
| -rw-r--r-- | Makefile | 13 | ||||
| -rw-r--r-- | cache.go | 2 |
2 files changed, 4 insertions, 11 deletions
@@ -9,24 +9,17 @@ api: main.go go.mod .PHONY: clean clean: - @printf "\n%s\n\n" "Cleaning build and module caches..." + @printf "\n%s\n\n" "Cleaning build artifacts..." go clean - go clean -cache -modcache - @printf "\n%s\n\n" "...Done!" - -.PHONY: update -update: - @printf "\n%s\n\n" "Updating from upstream repository..." - git pull --rebase origin master @printf "\n%s\n\n" "...Done!" .PHONY: install install: @printf "\n%s\n\n%s\n" "Installing ..." "Creating Directories ..." - mkdir -p $(BINDIR)/web + mkdir -p $(BINDIR)/static @printf "\n%s\n" "Copying files..." install -m755 api $(BINDIR) - install -m644 web/* $(BINDIR) + install -m644 static/* $(BINDIR) @printf "\n%s\n" "Setting ownership..." chown -R www:www $(BINDIR) @printf "\n%s\n\n" "...Done!" @@ -93,7 +93,7 @@ func (cache *cacheWrapper) bap(requestPath string) error { bytes, err = pkgsQuery(format) default: if requestPath == "/" { - bytes, err = ioutil.ReadFile("web/index.txt") + bytes, err = ioutil.ReadFile("static/index.txt") } else { err = errors.New("Invalid Query Type") } |