---
# System prepended metadata

title: CP and Puzzle Deployment document

---

# CP and Puzzle Deployment document

> KT to : Jeffry
> Date: -09-2022

1) Deployment document command
```
1) sudo ssh test@10.10.80.103
2) sudo su
3) cd /home/test/deployproject/doc
4) Execute below command
python3 makeDeploy.py edgeServer_V2.1.08A7_DB_V1.0.15A2 V1.0.15A1 V2.1.08A7 V2.1.07A8 V2.1.08A5 DB_V1.0.15A2 V1.0.15A2 20220823_CP_V1.0.15A0A1.zip
```
Version details:
![Version details](https://i.imgur.com/rQukdYg.png)


2) Get Deployment document after command execution
```
1) Formal deployment document
   => cat deploy2.md
   => Add deployment details in gitlab
   => https://gitlab.ieiworld.com/iot-team/cp_deployment_doc
   
2) Test deployment Document
   => cat deploy.md
   => Add deployment details to hackmd
   => https://hackmd.io/@IanChang/Staff_deployment_list
```
3) Follow deployment document instruction for EdgeServer and database deployment

4) How to check deployed Egeserver version
  ```
  1) ssh to server
  2) cat EdgeServer/apiserver/.version
  ```
5) How to check deployed DB version
```
   Method 1:
      Check in deployed server
      1) cd /home/test/deployproject/dbDeploy
      2) cat backup/<dbFilename_version> 
   Method 2:
     1) Connect to database using Robo 3T
     2) opne dtaDB database
     3) execute command:  db.getCollection('dbversion').find({}).sort({"date" :-1})
     4) It will give records in descending order and first records is latest deployed version
     
```
