Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update deploy.sh #52

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions deploy/script/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ for ip in ${deploy_iplist[@]};
do
private_key="cert/node_"${idx}".key.pri"
cert="cert/cert_"${idx}".cert"
run_one_cmd "nohup ./${server_bin} server.config ${private_key} ${cert} > ${server_bin}.log 2>&1 &" &
run_one_cmd "nohup ./${server_bin} server.config ${private_key} ${cert} > ${server_bin}${idx}.log 2>&1 &" &
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if you remove this, once all the binaries are running at the same machine, their logs will be lost.

((count++))
((idx++))
done
Expand All @@ -113,7 +113,7 @@ do
resp=""
while [ "$resp" = "" ]
do
resp=`ssh -i ${key} -n -o BatchMode=yes -o StrictHostKeyChecking=no ubuntu@${ip} "grep \"receive public size:${#iplist[@]}\" ${server_bin}.log"`
resp=`ssh -i ${key} -n -o BatchMode=yes -o StrictHostKeyChecking=no ubuntu@${ip} "grep \"receive public size:${#iplist[@]}\" ${server_bin}${idx}.log"`
if [ "$resp" = "" ]; then
sleep 1
fi
Expand Down