diff --git a/ct/journiv.sh b/ct/journiv.sh index be78c60cc..f92e72ec1 100644 --- a/ct/journiv.sh +++ b/ct/journiv.sh @@ -45,6 +45,13 @@ function update_script() { $STD uv sync --locked --no-editable --no-install-project msg_ok "Updated Python Environment" + NODE_VERSION="24" setup_nodejs + msg_info "Building Frontend" + cd /opt/journiv/frontend + $STD npm ci + $STD npm run build + msg_ok "Built Frontend" + grep -q '^ALLOW_INSECURE_COOKIE_AUTH_OVER_HTTP=' /opt/journiv.env || echo 'ALLOW_INSECURE_COOKIE_AUTH_OVER_HTTP=true' >>/opt/journiv.env diff --git a/install/journiv-install.sh b/install/journiv-install.sh index 3235c2613..9899afc84 100644 --- a/install/journiv-install.sh +++ b/install/journiv-install.sh @@ -60,6 +60,13 @@ EOF chmod 600 /opt/journiv.env msg_ok "Configured Journiv" +NODE_VERSION="24" setup_nodejs +msg_info "Building Frontend" +cd /opt/journiv/frontend +$STD npm ci +$STD npm run build +msg_ok "Built Frontend" + msg_info "Initializing Database" set -a source /opt/journiv.env