From 841f21b48ed98809f89097ed89ee253a6950a58d Mon Sep 17 00:00:00 2001
From: HongKee Moon <hkmoon@me.com>
Date: Tue, 31 Aug 2021 09:22:02 +0200
Subject: [PATCH] Add "how to deploy develop and production versions"

---
 web/README.md | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/web/README.md b/web/README.md
index 85ff5cd..3308a5d 100644
--- a/web/README.md
+++ b/web/README.md
@@ -37,4 +37,25 @@ See [Configuration Reference](https://cli.vuejs.org/config/).
 References:
 
 * https://github.com/miaolz123/vue-markdown
-* Star rating system: https://karol-f.github.io/vue-custom-element/#/demos/events
\ No newline at end of file
+* Star rating system: https://karol-f.github.io/vue-custom-element/#/demos/events
+
+# Production
+
+## How to apply Dev branch into Production
+
+### Server
+1. Create an increment version of tag in https://git.mpi-cbg.de/scicomp/scidev_team/dd-code/-/tags
+2. Make new merge request from ```develop``` branch into ```master``` in https://git.mpi-cbg.de/scicomp/scidev_team/dd-code/-/merge_requests/new
+3. Accept the merge request
+4. In ```/local/dd-code-api```
+5. ```git pull```
+6. ```flask run --host=0.0.0.0 --port=5001```
+7. In ```/home/moon/backup```
+8. ```mongodump --host=ddcode-srv1 --port=27018 --db=ddcode```
+9. ```mv dump dump-<date>```
+10. ```mongorestore --port=27017  --drop```
+
+### Client
+1. For production, ```git checkout master```, ```yarn build``` and ```deploy```
+2. For develop, ```git checkout develop```,  ```yarn build-dev``` and ```deploy-dev```
+
-- 
GitLab