From a3ca8a4e3cbe2bac9359d572cb18c061493acd3a Mon Sep 17 00:00:00 2001
From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de>
Date: Mon, 13 Jul 2020 07:04:14 +0000
Subject: [PATCH] Update .gitlab-ci.yml

---
 .gitlab-ci.yml | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 2e4ab5e..76d23fe 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -8,4 +8,16 @@ pages-devel:
   tags: 
     - testing
   only: 
-    - testing
\ No newline at end of file
+    - testing
+    
+pages-devel:    
+  stage: deploy
+  script:
+    - npm install
+    - "pm2 delete --silent project || :"
+    - pm2 start ./app.js --name=project
+    - pm2 save
+  tags: 
+    - production
+  only: 
+    - master
\ No newline at end of file
-- 
GitLab