summaryrefslogtreecommitdiffstats
path: root/bin/test-web-server
blob: e57e438123f81ad257801fc2cbdac21795944fd8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

set -e

server_port=10605
service=tracker_service.py
url="http://localhost:$server_port/tracker"

bindir="`dirname $0`"
if ! test -r "$bindir/$service" ; then
    echo "error: failed to locate bin directory (tried $bindir)"
    exit 1
fi

cd "$bindir"
echo "URL: $url"
python "$service" "$url" localhost "$server_port" ../data/security.db || true

© 2014-2024 Faster IT GmbH | imprint | privacy policy