✅ 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 /') ---
|
||||
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 ---
|
||||
|
|
|
|||
13
package.json
13
package.json
|
|
@ -6,7 +6,10 @@
|
|||
"type": "module",
|
||||
"scripts": {
|
||||
"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": [],
|
||||
"author": "",
|
||||
|
|
@ -35,11 +38,5 @@
|
|||
"repository": {
|
||||
"type": "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