Skip to content

Commit eb81587

Browse files
committed
Clean migration scripts
1 parent c60ec8a commit eb81587

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed
Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
#!/usr/bin/env bash
2-
echo "========== STARTING BLOCKCHAIN =========="
32

4-
/nethermind/Nethermind.Runner --config=/nethermind/configs/poco-chain.cfg > /nethermind/chain.log 2>&1 &
3+
echo "### Starting chain"
4+
/nethermind/Nethermind.Runner --config=/nethermind/configs/poco-chain.cfg &> /nethermind/chain.log &
55

66
# Wait for the chain to start
77
sleep 5
88

99
# Install node packages and deploy PoCo's smart contracts
10+
echo "### Running migration"
1011
cd /iexec-poco && \
1112
echo "========== STANDARD DEPLOYMENT ==========" && \
1213
jq . config/config.json && \
@@ -16,4 +17,4 @@ cd /iexec-poco && \
1617
rm -R build && \
1718
echo "========== ENTERPRISE DEPLOYMENT ==========" && \
1819
jq . config/config.json && \
19-
bash -i -c "KYC=1 PROXY_SALT=0x0000000000000000000000000000000000000000000000000000000000000001 ./node_modules/.bin/truffle migrate"
20+
bash -i -c "KYC=1 PROXY_SALT=0x0000000000000000000000000000000000000000000000000000000000000001 ./node_modules/.bin/truffle migrate"

testchains/nethermind/migrate.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env bash
22

3-
/nethermind/Nethermind.Runner --config=/nethermind/configs/poco-chain.cfg > /nethermind/chain.log 2>&1 &
3+
echo "### Starting chain"
4+
/nethermind/Nethermind.Runner --config=/nethermind/configs/poco-chain.cfg &> /nethermind/chain.log &
45

56
# Wait for the chain to start
67
sleep 5
78

89
# Install node packages and deploy PoCo's smart contracts
9-
cd /iexec-poco && bash -i -c "./node_modules/.bin/truffle migrate"
10+
echo "### Running migration"
11+
cd /iexec-poco && bash -i -c "./node_modules/.bin/truffle migrate"

0 commit comments

Comments
 (0)