summaryrefslogtreecommitdiffstats
path: root/run-server.sh
blob: 24ff0e88ee9f9f4f95efb05e29d414f4541c34fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

# Copyright (c) 2012-2013 Kaarle Ritvanen
# See LICENSE file for license details

if [ $(basename $0) = run-server.sh ]; then
    PORT=${1:-8000}
    cd $(dirname $0)
else
    PORT=80
    cd /usr/share/acf2
fi

exec uwsgi -M --http-socket :$PORT \
    --plugin /usr/lib/uwsgi/lua_plugin.so --lua server.lua \
    --remap-modifier 6:0 \
    --static-map /browser=web --static-index client.html