Run the job tracker as its own container at /jobs/
Test and deploy / test (push) Successful in 2m3s
Test and deploy / deploy (push) Successful in 1m31s

The tracker (applications, leads, email pipeline, capture userscript) now
lives in the adamf/job-tracker repo and runs here from its published image.

- docker-compose.yml: a `jobs` service with an explicit environment list
  (its own database role; none of the site's other secrets), ./jobs-data
  mounted at /data, and nginx waiting for it. The dev override seeds it.
- nginx: /jobs/ proxied to it with the prefix kept, and 301s from
  /cv/jobs, /cv/leads and the old userscript URL.
- env_registry.json and .env.example: the email and job-lead variables now
  belong to the jobs service; CLAUDE_* to python and jobs; new
  POSTGRES_JOBS_* and JOBS_IMAGE_TAG. The compose environment test now
  checks the jobs service's list as well as python's.
- backend: no longer starts the email and job-lead schedulers or serves
  the capture and email routes, since the tracker reads the same settings
  and would otherwise process everything twice. The old job code stays
  until the tracker has run for a while.
- vue: the CV page's Jobs button goes to /jobs/; the old routes are gone.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
2026-10-14 17:08:18 +01:00
co-authored by Claude Opus 5.5
parent 148b94959d
commit 931b02c9e4
12 changed files with 208 additions and 102 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
<script setup>
/**
* Layout shell for /cv and /cv/jobs. It renders nothing but the RouterView —
* Layout shell for /cv. It renders nothing but the RouterView —
* its whole job is the UNSCOPED <style> block below, which re-points the site's
* design tokens from the dark palette in assets/styles.css to ink-on-paper
* values for everything inside .cv-layout.
@@ -18,7 +18,7 @@ import { RouterView } from "vue-router";
</template>
<!--
Light theme for /cv and /cv/jobs.
Light theme for /cv.
Unscoped on purpose. It re-points the site's colour tokens (defined in
src/assets/styles.css) to ink-on-paper values so the global element styles
+2 -12
View File
@@ -105,18 +105,8 @@ const router = createRouter({
name: "cv",
component: () => import("@/views/CV/CV.vue"),
},
{
path: "jobs",
name: "job-applications",
component: () => import("@/views/CV/JobApplications.vue"),
meta: { requiresAdmin: true },
},
{
path: "leads",
name: "job-leads",
component: () => import("@/views/CV/JobLeads.vue"),
meta: { requiresAdmin: true },
},
// /cv/jobs and /cv/leads moved to the job tracker app at
// /jobs/; nginx redirects the old paths.
],
},
],
+3 -4
View File
@@ -12,7 +12,6 @@
* the chrome, and cv-shared.css sizes the pages.
*/
import { ref, shallowRef } from "vue";
import { RouterLink } from "vue-router";
// import CVGeneral from "./CVGeneral.vue";
import CVProgramming from "./CVProgramming.vue";
import CoverLetters from "./CoverLetters.vue";
@@ -67,9 +66,9 @@ function print() {
{{ t.label }}
</button>
<button class="cv-btn cv-print-btn" @click="print()">Print</button>
<RouterLink to="/cv/jobs" class="cv-btn cv-jobs-btn"
>Jobs</RouterLink
>
<!-- The tracker is its own app (adamf/job-tracker) at /jobs/,
so this is a full page load, not a RouterLink. -->
<a href="/jobs/" class="cv-btn cv-jobs-btn">Jobs</a>
</div>
<Transition name="cv-fade" mode="out-in">
<component :is="currentComponent" :key="selected" />