Minor tweaks and test
continuous-integration/appveyor/branch AppVeyor build succeeded Details

master v2.2.3
Jonatan Nilsson 2022-08-15 09:05:05 +00:00
parent e9bd6b867d
commit 71c8937f93
3 changed files with 4 additions and 3 deletions

View File

@ -43,6 +43,7 @@ export default class Server {
})
let healthChecks = 0
let healthCollectLimit = 10
this.flaska.after(function(ctx) {
let ended = performance.now() - ctx.__started
@ -59,7 +60,7 @@ export default class Server {
if (ctx.url === '/health') {
healthChecks++
if (healthChecks > 60 * 60 * 12) {
if (healthChecks > healthCollectLimit) {
ctx.log[level]({
duration: Math.round(ended),
status: ctx.status,

View File

@ -66,7 +66,7 @@ on_success:
https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets
echo "Deplying to production"
curl -X POST http://192.168.93.50:4010/update/serviceupload
curl -X POST http://192.168.93.50:4010/update/storageupload
fi
# on build failure

View File

@ -1,6 +1,6 @@
{
"name": "storage-upload",
"version": "2.2.2",
"version": "2.2.3",
"description": "Micro service for uploading and image resizing files to a storage server.",
"main": "index.js",
"scripts": {