Skip to content

Commit

Permalink
Removed support for Jamstash in dev mode. Not needed anymore :)
Browse files Browse the repository at this point in the history
  • Loading branch information
deluan committed Aug 16, 2020
1 parent a2e0acd commit 15a06fc
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 63 deletions.
1 change: 0 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
.DS_Store
ui/node_modules
Jamstash-master
Dockerfile
docker-compose*.yml
data
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ TODO.md
var
navidrome.toml
master.zip
Jamstash-master
testDB
navidrome.db
*.swp
Expand Down
7 changes: 0 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ setup-git:
(cd .git/hooks && ln -sf ../../git/* .)
.PHONY: setup-git

Jamstash-master:
wget -N https://github.com/tsquillario/Jamstash/archive/master.zip
unzip -o master.zip
rm master.zip
(cd Jamstash-master && npm ci && npx bower install && npx grunt build)
rm -rf Jamstash-master/node_modules Jamstash-master/bower_components

check_env: check_go_env check_node_env
.PHONY: check_env

Expand Down
2 changes: 1 addition & 1 deletion reflex.conf
Original file line number Diff line number Diff line change
@@ -1 +1 @@
-s -r "(\.go$$|navidrome.toml|resources)" -R "(Jamstash-master|^ui|^data|^db/migration)" -- go run .
-s -r "(\.go$$|navidrome.toml|resources)" -R "(^ui|^data|^db/migration)" -- go run .
47 changes: 0 additions & 47 deletions server/fileserver.go

This file was deleted.

6 changes: 0 additions & 6 deletions server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ package server

import (
"net/http"
"os"
"path"
"path/filepath"
"time"

"github.com/deluan/navidrome/conf"
Expand Down Expand Up @@ -67,10 +65,6 @@ func (a *Server) initRoutes() {
http.Redirect(w, r, indexHtml, 302)
})

workDir, _ := os.Getwd()
filesDir := filepath.Join(workDir, "Jamstash-master/dist")
FileServer(r, "/Jamstash", "/Jamstash", http.Dir(filesDir))

a.router = r
}

Expand Down

0 comments on commit 15a06fc

Please sign in to comment.