diff --git a/backend/build.gradle b/backend/build.gradle index 6c50447..c574140 100644 --- a/backend/build.gradle +++ b/backend/build.gradle @@ -94,6 +94,6 @@ task buildYPK(dependsOn: ["buildZip"]) { } task deploy(dependsOn: ["buildYPK"]) { doLast { - org.bdware.ypkdeploy.HTTPTool.batchRun("./backend/deployconfig.json", true) + org.bdware.ypkdeploy.HTTPTool.deployWithYpk("./backend/deployconfig.json", "${reltivePath}/build/contractexample-${currVersion}.ypk") } } \ No newline at end of file diff --git a/backend/deployconfig.json b/backend/deployconfig.json index 4031206..7b1181a 100644 --- a/backend/deployconfig.json +++ b/backend/deployconfig.json @@ -1,10 +1,9 @@ { - "host": "ip", + "agentAddress": "ip:port", "privateKey": "e85ce2f4d8...", "publicKey": "04da01345770b7e09d4774bf6cd67bf90b32eaa09f517c79b2d1f9b8a926", - "ypkPath": "./backend/build/contractexample-1.1.0.ypk", + "ypkPath": "./backend/build/contractexample-1.2.0.ypk", "killBeforeStart": "ContractID/ContractName", "createParam": { - }, - "agentPort": 21030 + } } \ No newline at end of file