Let's actually add a test config and a testing run target in makefile.
This commit is contained in:
parent
dd1469c957
commit
7f5a3bdb7f
3
Makefile
3
Makefile
@ -17,6 +17,9 @@ ${TARGET}:
|
||||
install-jade:
|
||||
go install github.com/Joker/jade/cmd/jade@latest
|
||||
|
||||
run:
|
||||
bin/dwelling-radio -no-liquidsoap -conf configs/config.test.yaml
|
||||
|
||||
install:
|
||||
install -Dm 0755 bin/${TARGET} ${DESTDIR}usr/bin/${TARGET}
|
||||
install -Dm 0755 tools/radioctl ${DESTDIR}usr/bin/${TARGET}ctl
|
||||
|
15
configs/config.test.yaml
Normal file
15
configs/config.test.yaml
Normal file
@ -0,0 +1,15 @@
|
||||
# Sets network type (could be tcp{,4,6}, unix)
|
||||
# and address:port or /path/to/unix.sock to
|
||||
# listen on.
|
||||
listen_on: "tcp 127.0.0.1:16387"
|
||||
icecast:
|
||||
# URL to Icecast's status-json.xsl
|
||||
url: "http://radio.arav.home.arpa/status-json.xsl"
|
||||
playlist_path: "playlist.log"
|
||||
filelist_path: "/srv/radio/filelist.html"
|
||||
most_listened_song_file_path: "/mnt/data/appdata/mostlistenedsong"
|
||||
liquidsoap:
|
||||
executable_path: "/opt/opam/4.14.0/bin/liquidsoap"
|
||||
script_path: "/etc/dwelling/radio.liq"
|
||||
# How much songs to list on a page
|
||||
list_last_n_songs: 10
|
Loading…
Reference in New Issue
Block a user