summaryrefslogtreecommitdiff
path: root/run-both-local.sh
blob: e47af681204dcb06c8b395f1810ee3b7a168ee3f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/bash
. src/local/utils.sh

if ! neo4j_running ; then
    $NEO4J_ROOT/bin/neo4j start
fi

CONFIG=res/etc/rhizi-server.conf
EXAMPLE=res/etc/rhizi-server.conf.example
HTPASSWD=res/etc/htpasswd
if [ "x$DOMAIN" == "x" ]; then
    echo using default domain
    DOMAIN=default.rhizi.net
else
    echo using $DOMAIN domain
fi
if [ ! -f $CONFIG ]; then
    echo "copying $EXAMPLE to $CONF"
    echo "please edit it as you see fit"
    cp $EXAMPLE $CONFIG
fi
make # building css relies on Makefile
ant -f build.ant deploy-local -DdefaultDomain=$DOMAIN -DtargetDomain=$DOMAIN && (
    cd deploy-local
    python2.7 bin/rz_server.py --config-dir etc
)