mediabox view server.sh @ rev 8

Tiny edit
author Paul Issott <paul@slitaz.org>
date Fri Feb 24 19:47:21 2017 +0000 (2017-02-24)
parents
children
line source
1 #!/bin/sh
2 #
3 # server.sh - Serve MediBox via Busybox HTTPd for development
4 #
5 . /lib/libtaz.sh
7 if [ -d "cache" ]; then
8 port=8090
9 echo "Starting server on port: $port"
10 echo "URL: $(boldify http://localhost:$port/)"
11 echo "Press CTRL+C to stop the server"
12 httpd -f -u www:www -p ${port} -c data/httpd.conf
13 else
14 echo "Missing cache dir: cache/"
15 echo "install -d -m 0777 cache"
16 fi && exit 0