Separated out run_all from run_wasmd to execute as two processes
This commit is contained in:
0
docker/logs.sh
Normal file → Executable file
0
docker/logs.sh
Normal file → Executable file
@@ -1,17 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test -n "$1"; then
|
||||
# need -R not -r to copy hidden files
|
||||
cp -R "$1/.wasmd" /root
|
||||
cp -R "$1/.wasmcli" /root
|
||||
fi
|
||||
|
||||
echo Starting Wasmd...
|
||||
|
||||
mkdir -p /root/log
|
||||
wasmd start --rpc.laddr tcp://0.0.0.0:26657 >> /root/log/wasmd.log &
|
||||
|
||||
sleep 4
|
||||
echo Starting Rest Server...
|
||||
|
||||
wasmcli rest-server --laddr tcp://0.0.0.0:1317 --trust-node
|
||||
8
docker/run_all.sh
Executable file
8
docker/run_all.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
./run_wasmd.sh >> /root/log/wasmd.log &
|
||||
|
||||
sleep 4
|
||||
echo Starting Rest Server...
|
||||
|
||||
wasmcli rest-server --laddr tcp://0.0.0.0:1317 --trust-node
|
||||
10
docker/run_wasmd.sh
Executable file
10
docker/run_wasmd.sh
Executable file
@@ -0,0 +1,10 @@
|
||||
#!/bin/bash
|
||||
|
||||
if test -n "$1"; then
|
||||
# need -R not -r to copy hidden files
|
||||
cp -R "$1/.wasmd" /root
|
||||
cp -R "$1/.wasmcli" /root
|
||||
fi
|
||||
|
||||
mkdir -p /root/log
|
||||
wasmd start --rpc.laddr tcp://0.0.0.0:26657
|
||||
Reference in New Issue
Block a user