✅ Fix Jenkinsfile: force recreate + health check
This commit is contained in:
parent
15bd1f0610
commit
4a732b5f59
2
index.js
2
index.js
|
|
@ -34,7 +34,7 @@ app.get("/db-check", async (req, res) => {
|
||||||
|
|
||||||
// --- Route d’accueil (fix pour 'Cannot GET /') ---
|
// --- Route d’accueil (fix pour 'Cannot GET /') ---
|
||||||
app.get("/", (req, res) => {
|
app.get("/", (req, res) => {
|
||||||
res.json({ message: "✅ API Thé Tip Top en ligne et opérationnelle 1231 !" });
|
res.json({ message: "✅ API Thé Tip Top en ligne et opérationnelle 123n1 !" });
|
||||||
});
|
});
|
||||||
|
|
||||||
// --- Monitoring Prometheus ---
|
// --- Monitoring Prometheus ---
|
||||||
|
|
|
||||||
11
package.json
11
package.json
|
|
@ -6,7 +6,10 @@
|
||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"start": "node index.js",
|
"start": "node index.js",
|
||||||
"dev": "nodemon index.js"
|
"dev": "nodemon index.js",
|
||||||
|
"lint": "eslint .",
|
||||||
|
"test": "jest --coverage",
|
||||||
|
"test:integration": "jest --config jest.integration.config.js"
|
||||||
},
|
},
|
||||||
"keywords": [],
|
"keywords": [],
|
||||||
"author": "",
|
"author": "",
|
||||||
|
|
@ -35,11 +38,5 @@
|
||||||
"repository": {
|
"repository": {
|
||||||
"type": "git",
|
"type": "git",
|
||||||
"url": "https://gitea.wk-archi-o24a-15m-g3.fr/wkadmin/the-tip-top-backend.git"
|
"url": "https://gitea.wk-archi-o24a-15m-g3.fr/wkadmin/the-tip-top-backend.git"
|
||||||
},
|
|
||||||
"scripts": {
|
|
||||||
"lint": "eslint .",
|
|
||||||
"test": "jest --coverage",
|
|
||||||
"test:integration": "jest --config jest.integration.config.js"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user