File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import { Util } from "./Util";
1010
1111export class Config {
1212 public static reload ( ) : void {
13- Config . version = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "UNKNOWN-VERSION " ) ;
13+ Config . version = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "1.0.34 " ) ;
1414
1515 Config . NODE_ENV = Config . getEnv ( "NODE_ENV" , "development" ) ;
1616
@@ -74,7 +74,7 @@ export class Config {
7474 Config . nodered_initial_liveness_delay = parseInt ( Config . getEnv ( "nodered_initial_liveness_delay" , "60" ) ) ;
7575 }
7676 public static db : DatabaseConnection = null ;
77- public static version : string = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "UNKNOWN-VERSION " ) ;
77+ public static version : string = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "1.0.34 " ) ;
7878
7979 public static NODE_ENV : string = Config . getEnv ( "NODE_ENV" , "development" ) ;
8080
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ export class Config {
4545
4646 Config . amqp_message_ttl = parseInt ( Config . getEnv ( "amqp_message_ttl" , "20000" ) ) ;
4747 }
48- public static version : string = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "UNKNOWN-VERSION " ) ;
48+ public static version : string = ( fs . existsSync ( "VERSION" ) ? fs . readFileSync ( "VERSION" , "utf8" ) : "1.0.34 " ) ;
4949 public static nodered_id : string = Config . getEnv ( "nodered_id" , "1" ) ;
5050 public static nodered_sa : string = Config . getEnv ( "nodered_sa" , "" ) ;
5151
Original file line number Diff line number Diff line change 1- #!/usr/bin/env node
21import * as winston from "winston" ;
32import * as http from "http" ;
43
You can’t perform that action at this time.
0 commit comments