diff --git a/scripts/04-create-deployments.sh b/scripts/04-create-deployments.sh index 0c17743..f9e6830 100755 --- a/scripts/04-create-deployments.sh +++ b/scripts/04-create-deployments.sh @@ -23,8 +23,6 @@ else exit 1 fi -so_command=/home/laconic/bin/laconic-so - echo "Run deploy init on all nodes" spec_file_name=${machine_name_prefix}-spec.yml @@ -36,8 +34,11 @@ do node_name=${machine_name_prefix}-${i} node_host_name=${node_name}.${machine_domain} laconic_console_config="LACONIC_HOSTED_ENDPOINT=http://${node_host_name}:9473" + explorer_api_config="LACONIC_LACONICD_API_URL=http://${node_host_name}:1317" + explorer_rpc_config="LACONIC_LACONICD_RPC_URL=http://${node_host_name}:26657" + explorer_chain_id_config="LACONIC_LACONICD_CHAIN_ID=${chain_id}" + deployment_config=${laconic_console_config},${explorer_api_config},${explorer_rpc_config},${explorer_chain_id_config} echo "Creating deployment dir on ${node_name}" - ssh laconic@${node_host_name} ${so_command} --stack mainnet-laconic deploy init --map-ports-to-host any-same --output ${spec_file_name} --config ${laconic_console_config} - ssh laconic@${node_host_name} ${so_command} --stack mainnet-laconic deploy create --deployment-dir ${deployment_dir} --spec-file ${spec_file_name} --network-dir ${node_network_dir} --initial-peers ${peers} + ssh ${ssh_user}@${node_host_name} ${so_command} --stack mainnet-laconic deploy init --map-ports-to-host any-same --output ${spec_file_name} --config ${deployment_config} + ssh ${ssh_user}@${node_host_name} ${so_command} --stack mainnet-laconic deploy create --deployment-dir ${deployment_dir} --spec-file ${spec_file_name} --network-dir ${node_network_dir} --initial-peers ${peers} done -