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

add deploy_windows.sh #12

Merged
merged 1 commit into from Jun 23, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
27 changes: 27 additions & 0 deletions deploy_windows.sh
@@ -0,0 +1,27 @@
# Since `go run` will generate a temporary exe every time,
# your system will pop up a network security dialog for each instance
# and you won't be able to turn it off. With `go build` generating one
# exe, the dialog will only pop up once at the very first time.
# Also it's recommended to use `go build` for testing the whole exe.
go build # Build the harmony-benchmark.exe
go build aws-code/transaction_generator.go

# Create a tmp folder for logs
t=`date +"%Y%m%d-%H%M%S"`
log_folder="log-$t"

if [ ! -d $log_folder ]
then
mkdir -p $log_folder
fi

# Start nodes
config="local_config.txt"
while IFS='' read -r line || [[ -n "$line" ]]; do
IFS=' ' read ip port mode <<< $line
# echo $ip $port $mode
./harmony-benchmark.exe -ip $ip -port $port -config_file $config -log_folder $log_folder&
done < $config

# Generate transactions
./transaction_generator.exe -config_file $config -log_folder $log_folder