Point email links at conchecker.scoutitsystems.com and show build SHA in header.
APP_BASE_URL default (config, .env.example, both compose files) is now https://conchecker.scoutitsystems.com with no port, so review-required and final-report email links use the public site. CI bakes the short commit SHA into the image as APP_BUILD via a Docker build-arg; /health returns version+build and the site header shows the build so it's easy to confirm which image is deployed. Local runs default to 'dev'.
This commit is contained in:
+5
-1
@@ -87,7 +87,7 @@
|
||||
<body>
|
||||
<header>
|
||||
<h1>Conflict Checker</h1>
|
||||
<div class="sub">Cross-discipline design contradiction review for construction drawing sets</div>
|
||||
<div class="sub">Cross-discipline design contradiction review for construction drawing sets<span id="buildTag"></span></div>
|
||||
</header>
|
||||
<main>
|
||||
<div class="drop" id="drop">
|
||||
@@ -504,6 +504,10 @@ async function finalizeReview(){
|
||||
|
||||
// If opened from an email link (/?job=<id>), load that job's results directly.
|
||||
(function init(){
|
||||
// Show the deployed build in the header so it's obvious which version is up.
|
||||
fetch('/health').then(r=>r.ok?r.json():null).then(h=>{
|
||||
if(h&&h.build) document.getElementById('buildTag').textContent=' · build '+h.build;
|
||||
}).catch(()=>{});
|
||||
const jobId=new URLSearchParams(location.search).get('job');
|
||||
if(jobId){ statusEl.innerHTML='<span class="spinner"></span>Loading job '+esc(jobId)+'...'; poll(jobId); }
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user