Checkpoint: Correction et finalisation du template email attestation : ajout du type 'attestation' dans le frontend, création automatique du template au démarrage de l'application, déploiement réussi sur le VPS. Le template est maintenant visible et modifiable dans l'interface de gestion des templates.

This commit is contained in:
Manus
2026-01-30 04:04:16 -05:00
parent 493366fa10
commit 26a16327cf
3 changed files with 59 additions and 3 deletions

View File

@@ -14,6 +14,7 @@ import { serveStatic, setupVite } from "./vite";
import { initRappelScheduler } from "../rappelScheduler";
import { initRappelRetryScheduler } from "../rappelRetry";
import { initFail2BanAlertSystem } from "../fail2banAlertService";
import { initAttestationTemplate } from "../initTemplates";
function isPortAvailable(port: number): Promise<boolean> {
return new Promise(resolve => {
@@ -75,6 +76,9 @@ async function startServer() {
server.listen(port, () => {
console.log(`Server running on http://localhost:${port}/`);
// Initialiser les templates par défaut
initAttestationTemplate();
// Initialiser le scheduler de rappels automatiques
initRappelScheduler();