Skip to content

Commit

Permalink
fix: bridge process
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkanani committed Mar 13, 2021
1 parent 87e06bf commit c59dbb0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
2 changes: 2 additions & 0 deletions src/setup/devnet/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ export class Devnet {
.replace(/eth_rpc_url[ ]*=[ ]*".*"/gi, `eth_rpc_url = "${this.config.ethURL}"`)
.replace(/bor_rpc_url[ ]*=[ ]*".*"/gi, `bor_rpc_url = "http://bor${i}:8545"`)
.replace(/amqp_url[ ]*=[ ]*".*"/gi, `amqp_url = "amqp://guest:guest@rabbit${i}:5672/"`)
.replace(/span_poll_interval[ ]*=[ ]*".*"/gi, 'span_poll_interval = "0m15s"')
.replace(/checkpoint_poll_interval[ ]*=[ ]*".*"/gi, 'checkpoint_poll_interval = "1m0s"')
.save()
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,8 @@
INDEX=$1

docker-compose run -d --service-ports --name heimdall$INDEX heimdall$INDEX sh -c "
heimdalld start > ./logs/heimdalld.log &
heimdalld rest-server > ./logs/heimdalld-rest-server.log &
sleep 5
bridge start --all > ./logs/bridge.log &
# tail logs
heimdalld start > ./logs/heimdalld.log 2>&1 &
heimdalld rest-server > ./logs/heimdalld-rest-server.log 2>&1 &
sleep 60 && bridge start --all > ./logs/bridge.log 2>&1 &
tail -f ./logs/heimdalld.log ./logs/heimdalld-rest-server.log ./logs/bridge.log
"

0 comments on commit c59dbb0

Please sign in to comment.