From ad68117ece0c0c33bf8c0ec19e1ffdca00533adb Mon Sep 17 00:00:00 2001 From: laurentheirendt <laurent.heirendt@uni.lu> Date: Thu, 25 Apr 2019 13:59:03 +0200 Subject: [PATCH] fix for init of submodule --- .ci/deploy.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.ci/deploy.sh b/.ci/deploy.sh index ff58c499..59352f4d 100644 --- a/.ci/deploy.sh +++ b/.ci/deploy.sh @@ -1,5 +1,7 @@ #!/bin/bash +PAGEURL="https://r3.pages.uni.lu/school" + rootDir=$(pwd) echo $rootDir @@ -38,17 +40,17 @@ do #mv public/* $rootDir/public/$BLADE/stable/. # build the develop version into latest - git checkout -f develop - git fetch origin develop - git reset --hard origin/develop - git submodule update + #git checkout -f develop + #git fetch origin develop + #git reset --hard origin/develop + git submodule update --init grunt dist mv public/* $rootDir/public/$BLADE/latest/. # auto redirect file echo '<html>\n <head>\n - <meta http-equiv="refresh" content="0; url=https://r3.pages.uni.lu/school/'$BLADE'/stable"/>\n + <meta http-equiv="refresh" content="0; url='$PAGEURL'/'$BLADE'/stable"/>\n </head>\n <body>\n </bod>\n -- GitLab