---
# System prepended metadata

title: edgeServerV216C1_TEST for Deploy Test use Edge Server
tags: [IEI_IOT, Report]

---

# edgeServerV216C1_TEST for Deploy Test use Edge Server
## edgeServerV216C1_TEST & DeviceImg_v1.0.14C1 for Test Deploy
<style>
.markdown-body {
    max-width: 80%;
}
</style>

###### tags: `Report` `IEI_IOT`
## version:

| EdgeServerZipName| DEVICE_TAG| EdgeServerAPI_TAG| CONSOLE_TAG |UI_TAG| 
| --- | --- | ---  | --- | --- | 
| edgeServerV216C1_TEST | v1.0.14C1 | V2.1.6C1  | V2.1.6C | V2.1.6 |

|DBZipName |DB_TAG| DEVIMGZipName|
|---  | --- | --- |
|DB_v1.0.14C1  | v1.0.14C1 | 20201110_CP_v1.0.14C1.zip |

## test area
10.10.81.250 : D-Tool(Hub) (db in self)
10.10.81.251 : FT1/FT2 (db in 10.10.230.251:27018)
10.10.81.252 : FT3 (CP Image Station) (db in 10.10.230.251:27018)
10.10.81.253 : Burn(BI) (db in 10.10.230.251:27018)

10.10.81.251->192.168.0.184 : 0 station

10.10.80.32 : AS BI, wood table (db in self)
all db update for v1.0.14C1

Dell PC ip : 10.10.80.32 use to as BI station
ASUS PC ip :10.10.80.103 use to deploy

10.10.80.69 : Hunter Desk

10.10.80.55 : Adam Desk

## use deployProject create zip file step:
```
sudo ssh test@10.10.80.103
sudo su
cd /home/test/deployproject/edgeServerDeploy

## bash prepare.sh ZIPFILENAME API_TAG/BRANCH CONSOLE_TAG UI_TAG
bash prepare.sh edgeServerV216C1_TEST.zip V2.1.6C1 V2.1.6C V2.1.6

```
## use deployProject deploy zip file step:
### zip file in backup folder
### deploy IP: cat backup/config/edgeServerV216C1_TEST/map.txt
```
## fileName mapping
Test-BI-A.js 10.10.81.253
Test-FT1-A.js 10.10.81.251
Test-FT3-A.js 10.10.81.252
Test-HUB-A.js 10.10.81.250
Test2-BI-B.js 10.10.80.103
Test2-FT1-B.js 10.10.80.103
Test2-FT3-B.js 10.10.80.103
Test2-HUB-B.js 10.10.80.103
Test3-BI-B.js 10.10.80.32
Test3-FT1-B.js 10.10.80.32
Test3-FT3-B.js 10.10.80.32
Test3-HUB-B.js 10.10.80.32
TestUse-BI-A.js 10.10.81.251
TestUse-BI-B.js 10.10.81.252
TestUse-BI-C.js 10.10.81.253
TestUse-BI-D.js 10.10.80.32
TestUse-BI-E.js 10.10.80.103
TestUse-HUB-A.js 10.10.81.250
TestHeartBeat-BI-A.js 10.10.80.97
TestUsePUZZLE-BI-B.js 10.10.80.69
TestUsePUZZLE-BI-C.js 10.10.80.55
TestUsePUZZLE-FT1-B.js 10.10.80.69
TestUsePUZZLE-FT1-C.js 10.10.80.55
TestUsePCBA-BT-A.js 10.10.80.69
TestUsePCBA-BT-C.js 10.10.80.55

cd /home/test/deployproject/edgeServerDeploy
bash autoPass.sh edgeServerV216C1_TEST.zip Test-BI-A.js/Test-FT1-A.js/Test-FT3-A.js/Test-HUB-A.js

bash autoPass.sh edgeServerV216C1_TEST.zip Test3-BI-B.js

bash autoPass.sh edgeServerV216C1_TEST.zip TestUsePUZZLE-FT1-B.js/TestUsePUZZLE-FT1-C.js

bash autoPass.sh edgeServerV216C1_TEST.zip TestUsePCBA-BT-A.js/TestUsePCBA-BT-C.js

# 全數轉換成BI專用:
# all test area change to BI use (only keep one HUB):

TestUse-BI-A.js 10.10.81.251
TestUse-BI-B.js 10.10.81.252
TestUse-BI-C.js 10.10.81.253
TestUse-BI-D.js 10.10.80.32
TestUse-BI-E.js 10.10.80.103
TestUse-HUB-A.js 10.10.81.250

bash autoPass.sh edgeServerV216C1_TEST.zip TestUse-BI-A.js/TestUse-BI-B.js/TestUse-BI-C.js/TestUse-BI-D.js/TestUse-BI-E.js/TestUse-HUB-A.js
```

## NEW METHOD
## Deploy DB
```
sudo ssh test@10.10.80.103
sudo su
cd /home/test/deployproject/dbDeploy
bash prepare.sh DB_v1.0.14C1.zip v1.0.14C1

bash pass.sh DB_v1.0.14C1.zip 10.10.81.251 10.10.230.251 27018

bash pass.sh DB_v1.0.14C1.zip 10.10.81.250 127.0.0.1 27017

bash pass.sh DB_v1.0.14C1.zip 10.10.80.103 127.0.0.1 27017

bash pass.sh DB_v1.0.14C1.zip 10.10.80.69 127.0.0.1 27017

bash pass.sh DB_v1.0.14C1.zip 10.10.80.55 127.0.0.1 27017

# you can see the version in DB dbversion collection is tag_commitID
v1.0.14C1_xxxxxxx
```
