fix(leadhunter): change port 8769→8770 — conflit avec depenses_trello

Port 8769 était occupé par /home/h3r7/depenses_trello/app.py (pid=2287989).
Mise à jour du port dans :
- leadhunter_api.py (docstring, healthcheck, app.run)
- infra/turf-saas-leadhunter.service (description)

Ref: HRT-66

Co-Authored-By: Paperclip <noreply@paperclip.ing>
This commit is contained in:
DevOps Engineer
2026-04-27 16:42:15 +02:00
parent f9a45e6deb
commit 356bdf5bec
2 changed files with 5 additions and 5 deletions

View File

@@ -1,5 +1,5 @@
[Unit] [Unit]
Description=H3R7Tech LeadHunter API (Port 8769) Description=H3R7Tech LeadHunter API (Port 8770)
Documentation=https://portal-kolifee.duckdns.org Documentation=https://portal-kolifee.duckdns.org
After=network.target After=network.target

View File

@@ -2,7 +2,7 @@
""" """
H3R7Tech — LeadHunter API H3R7Tech — LeadHunter API
=========================== ===========================
Service Flask sur port 8769 exposant les endpoints LeadHunter. Service Flask sur port 8770 exposant les endpoints LeadHunter.
Endpoints : Endpoints :
GET /api/leads — Liste les leads (filtres: status, limit, offset) GET /api/leads — Liste les leads (filtres: status, limit, offset)
@@ -11,7 +11,7 @@ Endpoints :
GET /api/leads/export — Export CSV des leads GET /api/leads/export — Export CSV des leads
PATCH /api/leads/<id>/status — Met à jour le statut d'un lead PATCH /api/leads/<id>/status — Met à jour le statut d'un lead
Port : 8769 (validé CTO — disponible sur VPS, hors 8768/8765/5000/8792) Port : 8770 (8769 occupé par depenses_trello/app.py — corrigé HRT-66)
Auteur: H3R7Tech Backend Engineer Auteur: H3R7Tech Backend Engineer
Issue: HRT-66 Issue: HRT-66
@@ -292,7 +292,7 @@ def health():
{ {
"status": "ok", "status": "ok",
"service": "leadhunter-api", "service": "leadhunter-api",
"port": 8769, "port": 8770,
} }
) )
@@ -300,4 +300,4 @@ def health():
# ─── Entrypoint ────────────────────────────────────────────────────────────── # ─── Entrypoint ──────────────────────────────────────────────────────────────
if __name__ == "__main__": if __name__ == "__main__":
app.run(host="0.0.0.0", port=8769, debug=False) app.run(host="0.0.0.0", port=8770, debug=False)