fix: Use /app/music/ as default music library path for production

- Changed hardcoded music/library/ path to /app/music/ (production path)
- Added MUSIC_LIBRARY_PATH environment variable for local dev override
- Fixes scan library function on production server
- Aligns with path structure used in M3U playlists and liquidsoap config
This commit is contained in:
Glenn Thompson 2025-11-17 06:46:45 +03:00 committed by Brian O'Reilly
parent 6043e3f9a4
commit 19b9deccf5
1 changed files with 2 additions and 2 deletions

View File

@ -16,8 +16,8 @@
;; configuration logic. Probably using 'ubiquity
(defparameter *server-port* 8080)
(defparameter *music-library-path*
(merge-pathnames "music/library/"
(asdf:system-source-directory :asteroid)))
(or (uiop:getenv "MUSIC_LIBRARY_PATH")
"/app/music/"))
(defparameter *supported-formats* '("mp3" "flac" "ogg" "wav"))
(defparameter *stream-base-url* "http://localhost:8000")