#!/bin/bash

setup() {
    echo "Configure portal api url to ${PORTAL_API_URL}"
    cat /var/www/html/assets/config.json.template | \
    sed "s#/portal/environments/DEFAULT#${PORTAL_API_URL}#g" > /var/www/html/assets/config.json
}

setup
exec "$@"

#!/bin/bash

setup() {
    echo "Configure portal api url to ${PORTAL_API_URL}"
    cat /var/www/html/assets/config.json.template | \
    sed "s#http://localhost:8083/portal/environments/DEFAULT#${PORTAL_API_URL}#g" > /var/www/html/assets/config.json
}

setup
exec "$@"

Replace portal baseurl config localhost
chore: Replace portal baseurl config localhost
