forked from OpenBazaar/OpenBazaar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun_dev.sh
More file actions
executable file
·27 lines (21 loc) · 834 Bytes
/
run_dev.sh
File metadata and controls
executable file
·27 lines (21 loc) · 834 Bytes
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
27
export PYTHONPATH=$PYTHONPATH:$PWD
# Location of log directory
LOGDIR=logs
killall -9 python
killall -9 python2
if which python2 2>/dev/null; then
PYTHON=python2
else
PYTHON=python
fi
# Running on the server because.
#$PYTHON ident/identity.py &
touch $LOGDIR/development.log
#$PYTHON node/tornadoloop.py $STOREFILE $MY_MARKET_IP -s $SEED_URI -p $MY_MARKET_PORT -l $LOGDIR/development.log &
$PYTHON node/tornadoloop.py 127.0.0.1 -p 12345 -l $LOGDIR/development.log -u 1 &
sleep 1
$PYTHON node/tornadoloop.py 127.0.0.2 -s tcp://127.0.0.1:12345 -p 12345 -l $LOGDIR/development.log -u 2 &
sleep 1
$PYTHON node/tornadoloop.py 127.0.0.3 -s tcp://127.0.0.1:12345 -p 12345 -l $LOGDIR/development.log -u 3 &
sleep 1
$PYTHON node/tornadoloop.py 127.0.0.4 -s tcp://127.0.0.1:12345 -p 12345 -l $LOGDIR/development.log -u 4 &