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

set -e

server_port=10605
ip_address="127.0.0.1"
service=tracker_service.py
url="http://$ip_address:$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" "$ip_address" "$server_port" ../data/security.db || true

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