Created
August 2, 2024 15:48
-
-
Save BananaAcid/d058cc7bd830108a3b176762b33247d8 to your computer and use it in GitHub Desktop.
dokku health check in nuxt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"scripts": { | |
"dokku": { | |
"predeploy": "cd app && npm install && npm run build" | |
} | |
}, | |
"healthchecks": { | |
"web": [ | |
{ | |
"type": "startup", | |
"name": "web check", | |
"description": "Checking if the app responds to the /api/health endpoint", | |
"path": "/api/health", | |
"attempts": 20 | |
} | |
] | |
} | |
} | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default defineEventHandler(async (event) => { | |
return {success: true, message: 'OK'}; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment