From 2d16b7bbfa16c00db392be5244b13a12eaeff3fe Mon Sep 17 00:00:00 2001
From: Wolfgang Knopki <wolfgang.knopki@hft-stuttgart.de>
Date: Fri, 6 Dec 2019 13:24:35 +0100
Subject: [PATCH] fixed cicd pipeline pm2 restart

---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 8e25672c..2c373532 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -2,7 +2,8 @@ pages-devel:
   stage: deploy
   script:
     - npm install
-    - pm2 restart ./app.js
+    - pm2 delete ./app.js
+    - pm2 start ./app.js
     - pm2 save
   tags: 
     - testing
-- 
GitLab