From 0dec012440c740479522cb52f800a72995fbedd3 Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Mon, 18 May 2020 16:50:25 +0200
Subject: [PATCH] Adjust production deployment

We use the demo api-gw for now because we need another QA session
before we can update api.tugraz.at.
---
 .gitlab-ci.yml   | 2 +-
 deploy.php       | 2 +-
 rollup.config.js | 8 ++++----
 3 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 488019d..1d1ce48 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -67,7 +67,7 @@ deploy_production:
       - production
   environment:
     name: production
-    url: https://signature.tugraz.at
+    url: https://esig.tugraz.at
   variables:
     DEPLOY_HOST: mw01-prod.tugraz.at
     DEPLOY_KEY: "$DEPLOY_SSH_KEY"
diff --git a/deploy.php b/deploy.php
index 9abba99..067073f 100644
--- a/deploy.php
+++ b/deploy.php
@@ -55,7 +55,7 @@ host('development')
 host('production')
     ->stage('production')
     ->hostname('mw@mw01-prod.tugraz.at')
-    ->set('deploy_path', '/home/mw/prod_signature/deploy')
+    ->set('deploy_path', '/home/mw/prod_esig/deploy')
     -> set('rsync',[
         'exclude'      => [
             '.git',
diff --git a/rollup.config.js b/rollup.config.js
index 9ecf77f..d70951c 100644
--- a/rollup.config.js
+++ b/rollup.config.js
@@ -72,11 +72,11 @@ switch (build) {
     break;
   case 'production':
     basePath = '/';
-    entryPointURL = 'https://api.tugraz.at';
-    keyCloakServer = 'auth.tugraz.at';
+    entryPointURL = 'https://api-demo.tugraz.at';
+    keyCloakServer = 'auth-test.tugraz.at';
     keyCloakBaseURL = 'https://' + keyCloakServer + '/auth';
-    keyCloakClientId = 'ibib_tugraz_at-IBIB';
-    pdfAsQualifiedlySigningServer = 'sig.tugraz.at';
+    keyCloakClientId = 'ibib-demo_tugraz_at-IBIB';
+    pdfAsQualifiedlySigningServer = 'sig-test.tugraz.at';
     matomoSiteId = 130;
     break;
   case 'test':
-- 
GitLab