Commit 7edb1368 authored by Ash McKenzie's avatar Ash McKenzie

Ensure gdk.yml is updated, reconfigured each time

parent 3b3dce4a
...@@ -16,8 +16,7 @@ tasks: ...@@ -16,8 +16,7 @@ tasks:
# GitLab # GitLab
[[ -d /workspace/gitlab ]] && ln -fs /workspace/gitlab /workspace/gitlab-development-kit/gitlab [[ -d /workspace/gitlab ]] && ln -fs /workspace/gitlab /workspace/gitlab-development-kit/gitlab
mv /workspace/gitlab-development-kit/secrets.yml /workspace/gitlab-development-kit/gitlab/config mv /workspace/gitlab-development-kit/secrets.yml /workspace/gitlab-development-kit/gitlab/config
# update gdk.yml # ensure gdk.yml has correct instance settings
gdk config set gitlab.rails.hostname $(gp url 3000 | sed -e 's+^http[s]*://++')
gdk config set gitlab.rails.port 443 gdk config set gitlab.rails.port 443
gdk config set gitlab.rails.https.enabled true gdk config set gitlab.rails.https.enabled true
# reconfigure GDK # reconfigure GDK
...@@ -42,6 +41,13 @@ tasks: ...@@ -42,6 +41,13 @@ tasks:
echo "$(date) – Updating GDK" | tee -a /workspace/startup.log echo "$(date) – Updating GDK" | tee -a /workspace/startup.log
gdk update gdk update
fi fi
# ensure gdk.yml has correct instance settings
gdk config set gitlab.rails.hostname $(gp url 3000 | sed -e 's+^http[s]*://++')
gdk config set gitlab.rails.port 443
gdk config set gitlab.rails.https.enabled true
# reconfigure GDK
echo "$(date) – Reconfiguring GDK" | tee -a /workspace/startup.log
gdk reconfigure
# start GDK # start GDK
echo "$(date) – Starting GDK" | tee -a /workspace/startup.log echo "$(date) – Starting GDK" | tee -a /workspace/startup.log
export DEV_SERVER_PUBLIC_ADDR=$(gp url 3808) export DEV_SERVER_PUBLIC_ADDR=$(gp url 3808)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment