mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-10 11:10:35 +02:00
Update Config.ts
fixing uptime
This commit is contained in:
parent
586e944d6a
commit
fad595923a
@ -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'];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user