Unify explorer DBIS taxonomy and branding
All checks were successful
phoenix-deploy Deployed to explorer-live
Deploy Explorer Live / deploy (push) Successful in 2m18s
All checks were successful
phoenix-deploy Deployed to explorer-live
Deploy Explorer Live / deploy (push) Successful in 2m18s
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
# Deploy the current Next.js standalone frontend to VMID 5000.
|
||||
# This is the canonical deployment path for the current SolaceScan frontend.
|
||||
# This is the canonical deployment path for the current DBIS Explorer frontend.
|
||||
# It builds the local frontend, uploads the standalone bundle, installs a systemd
|
||||
# service, and starts the Node server on 127.0.0.1:3000 inside the container.
|
||||
|
||||
@@ -81,7 +81,7 @@ run_in_vmid() {
|
||||
}
|
||||
|
||||
echo "=========================================="
|
||||
echo "Deploying Next SolaceScan Frontend"
|
||||
echo "Deploying Next DBIS Explorer Frontend"
|
||||
echo "=========================================="
|
||||
echo "VMID: $VMID"
|
||||
echo "Frontend root: $FRONTEND_ROOT"
|
||||
@@ -143,6 +143,10 @@ tar -C "$STAGE_DIR" -cf "${TMP_DIR}/${ARCHIVE_NAME}" .
|
||||
cp "$SERVICE_TEMPLATE" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
sed -i "s|/opt/solacescanscout/frontend/current|${APP_ROOT}/current|g" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
sed -i "s|Environment=PORT=3000|Environment=PORT=${FRONTEND_PORT}|g" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
if [[ "${APP_RELATIVE_DIR}" != "." ]]; then
|
||||
sed -i "s|WorkingDirectory=${APP_ROOT}/current|WorkingDirectory=${APP_ROOT}/current/${APP_RELATIVE_DIR}|g" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
sed -i "s|ExecStart=/usr/bin/node ${APP_ROOT}/current/server.js|ExecStart=/usr/bin/node ${APP_ROOT}/current/${APP_RELATIVE_DIR}/server.js|g" "${TMP_DIR}/${SERVICE_NAME}.service"
|
||||
fi
|
||||
|
||||
cat > "${TMP_DIR}/install-next-frontend.sh" <<EOF
|
||||
#!/usr/bin/env bash
|
||||
@@ -171,10 +175,10 @@ for attempt in \$(seq 1 45); do
|
||||
sleep 1
|
||||
done
|
||||
|
||||
if ! grep -qiE "SolaceScan|Chain 138 Explorer by DBIS" /tmp/\${SERVICE_NAME}-health.out; then
|
||||
if ! grep -qiE "DBIS Explorer|Chain 138 Explorer by DBIS" /tmp/\${SERVICE_NAME}-health.out; then
|
||||
systemctl status "\${SERVICE_NAME}.service" --no-pager || true
|
||||
journalctl -u "\${SERVICE_NAME}.service" -n 50 --no-pager || true
|
||||
echo "Frontend health check did not find the expected SolaceScan marker." >&2
|
||||
echo "Frontend health check did not find the expected DBIS Explorer marker." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
@@ -207,7 +211,7 @@ echo ""
|
||||
|
||||
echo "== Verification =="
|
||||
run_in_vmid "systemctl is-active ${SERVICE_NAME}.service"
|
||||
run_in_vmid "curl -fsS --max-time 5 http://127.0.0.1:${FRONTEND_PORT}/ | grep -qiE 'SolaceScan|Chain 138 Explorer by DBIS'"
|
||||
run_in_vmid "curl -fsS --max-time 5 http://127.0.0.1:${FRONTEND_PORT}/ | grep -qiE 'DBIS Explorer|Chain 138 Explorer by DBIS'"
|
||||
echo "Service ${SERVICE_NAME} is running on 127.0.0.1:${FRONTEND_PORT}"
|
||||
echo ""
|
||||
echo "Nginx follow-up:"
|
||||
|
||||
Reference in New Issue
Block a user