Minimal instructions for spring boot installation.

master
Rémi Cocula 8 years ago
parent 0a460d6bab
commit 06776d9f0a
  1. 34
      documentation/INSTALL.md

@ -40,44 +40,20 @@ Daily WAR files are built by Jenkins and available [here](https://jenkins.zifnab
INFO: Deployment of web application archive /var/lib/tomcat8/webapps/libresonic.war has finished in 46,192 ms INFO: Deployment of web application archive /var/lib/tomcat8/webapps/libresonic.war has finished in 46,192 ms
4. In your web browser, navigate to `192.0.2.10:8080/libresonic/`, replacing `192.0.2.0` with your server's IP address, or `127.0.0.1` if installing locally. 4. In your web browser, navigate to `http://IP_ADDRESS:8080/libresonic/`, replacing `IP_ADDRESS` with your server's IP address, or `127.0.0.1` if installing locally.
## Alternative to Tomcat ## Alternative to Tomcat
If you'd prefer not to use a Tomcat container, you can also run Libresonic as a standalone application. If you'd prefer not to use a Tomcat container, you can also run Libresonic as a standalone application.
Note that, in that case, libresonic will available at `192.0.2.10:8080` (and not `192.0.2.10:8080/libresonic/`). Note that, in that case, libresonic will available at `http://IP_ADDRESS:8080` (and not `IP_ADDRESS:8080/libresonic/`).
Download the Libresonic Pre-Compiled Package as explained above and put it anywhere. Then create the libresonic directory. Download the Libresonic Pre-Compiled Package as explained above and put it anywhere. Then create the libresonic directory.
Now you can simply run java against the libresonic.war package. Now you can simply run java against the libresonic.war package using a command like :
Here is a simple shell script that does the job.
```shell ```
#!/bin/sh java -jar libresonic.war
JAVA_HOME=/software/java/jdk1.8.0_92 # please change to your java distribution directory
LIBRESONIC_HOME=/var/libresonic
LIBRESONIC_PIDFILE=${LIBRESONIC_HOME}/libresonic.pid
LOG=${LIBRESONIC_HOME}/libresonic_sh.log
LIBRESONIC_MAX_MEMORY=256
echo "LIBRESONIC_HOME = ${LIBRESONIC_HOME}"
echo "Launch libresonic"
${JAVA_HOME}/bin/java -Xmx${LIBRESONIC_MAX_MEMORY}m \
-Dlibresonic.home=${LIBRESONIC_HOME} \
-Djava.awt.headless=true \
-jar libresonic.war > ${LOG} 2>&1 &
# Write pid to pidfile if it is defined.
echo "Write pid in ${LIBRESONIC_PIDFILE}"
if [ $LIBRESONIC_PIDFILE ]; then
echo $! > ${LIBRESONIC_PIDFILE}
fi
echo Started libresonic [PID $!, ${LOG}]
``` ```
## Installing From Source ## Installing From Source

Loading…
Cancel
Save