1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-07-11 01:10:14 +02:00

Update Config.ts

fixing uptime
This commit is contained in:
Patrik J. Braun
2020-09-10 19:40:44 +02:00
committed by GitHub
parent 586e944d6a
commit fad595923a

View File

@ -8,6 +8,8 @@ import {ConfigProperty, IConfigClass} from 'typeconfig/common';
declare const process: any;
consts upTime = (new Date()).toISOString();
@ConfigClass({
configPath: path.join(__dirname, './../../../../config.json'),
saveIfNotExist: true,
@ -46,7 +48,7 @@ export class PrivateConfigClass implements IPrivateConfig {
this.Server.Environment.appVersion = require('../../../../package.json').version;
this.Server.Environment.buildTime = require('../../../../package.json').buildTime;
this.Server.Environment.buildCommitHash = require('../../../../package.json').buildCommitHash;
this.Server.Environment.upTime = (new Date()).toISOString();
this.Server.Environment.upTime = upTime;
this.Server.Environment.isDocker = !!process.env['PI_DOCKER'];
}