Skip to content

Commit 5885cde

Browse files
authored
OZ-201: HIS apps links working in Ona (formerly Gitpod) (#189)
1 parent 9eac2c9 commit 5885cde

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

scripts/start.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ if [[ $INSTALLED_DOCKER_VERSION =~ $MINIMUM_REQUIRED_DOCKER_VERSION_REGEX ]]; th
5252
if command -v gp version &> /dev/null; then
5353
export GITPOD_ENV="true"
5454
export USE_HTTPS="true"
55+
setGitpodHostnames
5556
else
5657
export GITPOD_ENV="false"
5758
fi

scripts/utils.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,23 @@ function setNginxHostnames {
196196

197197
}
198198

199+
function setGitpodHostnames {
200+
echo "$INFO Gitpod Environment detected, exporting Gitpod hostnames..."
201+
export O3_HOSTNAME="80-${GITPOD_WORKSPACE_URL#https://}"
202+
export ODOO_HOSTNAME="8069-${GITPOD_WORKSPACE_URL#https://}"
203+
export SENAITE_HOSTNAME="8081-${GITPOD_WORKSPACE_URL#https://}"
204+
export ERPNEXT_HOSTNAME="8082-${GITPOD_WORKSPACE_URL#https://}"
205+
export FHIR_ODOO_HOSTNAME="8083-${GITPOD_WORKSPACE_URL#https://}"
206+
export KEYCLOAK_HOSTNAME="8084-${GITPOD_WORKSPACE_URL#https://}"
207+
208+
echo "→ O3_HOSTNAME=$O3_HOSTNAME"
209+
echo "→ ODOO_HOSTNAME=$ODOO_HOSTNAME"
210+
echo "→ SENAITE_HOSTNAME=$SENAITE_HOSTNAME"
211+
echo "→ ERPNEXT_HOSTNAME=$ERPNEXT_HOSTNAME"
212+
echo "→ FHIR_ODOO_HOSTNAME=$FHIR_ODOO_HOSTNAME"
213+
echo "→ KEYCLOAK_HOSTNAME=$KEYCLOAK_HOSTNAME"
214+
}
215+
199216
function exportScheme() {
200217
if [ "$USE_HTTPS" == "true" ]; then
201218
export SERVER_SCHEME="https"

0 commit comments

Comments
 (0)