• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript env-read.EnvironmentConfig类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中env-read.EnvironmentConfig的典型用法代码示例。如果您正苦于以下问题:TypeScript EnvironmentConfig类的具体用法?TypeScript EnvironmentConfig怎么用?TypeScript EnvironmentConfig使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了EnvironmentConfig类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: constructor

 constructor(){
     this.dateUtil = new DateUtil();
     this.logger = new (winston.Logger)({
         transports: [
             new (winston.transports.Console)({prettyPrint: true}),
             new (winston.transports.File)({
                 filename: EnvironmentConfig.getEnvConfig().fileLocation,
                 prettyPrint: true
             }),
             new (winston.transports.DailyRotateFile)({
                 filename: EnvironmentConfig.getEnvConfig().fileLocation,
                 datePattern: EnvironmentConfig.getEnvConfig().rollingDatePattern,
                 prepend: true,
                 prettyPrint: true
             })
         ]
     });
 }
开发者ID:bbachi,项目名称:Angular5Sample,代码行数:18,代码来源:log.ts


示例2: require

import * as http from 'http';
import * as debug from 'debug';
import App from './app';
import path = require('path');
var cluster = require('cluster');
import { EnvironmentConfig } from 'env-read';

const port = normalizePort(EnvironmentConfig.getEnvConfig().port || 3070);
const numOfP = EnvironmentConfig.getEnvConfig().numberOfProcess || 2;

//Commenting
if(cluster.isMaster){

  // Count the machine's CPUs
  var cpuCount = require('os').cpus().length;

  if(numOfP < cpuCount){
    cpuCount = numOfP;
  }
  console.log('limiting only this number of  processes per app::::'+cpuCount);

  // Create a worker for each CPU
  for (var i = 0; i < cpuCount; i += 1) {
      cluster.fork();
  }

  cluster.on('exit', function (worker:any) {
    // Replace the dead worker,
    // we're not sentimental
    console.log('Worker %d died :(', worker.id);
    cluster.fork();
开发者ID:bbachi,项目名称:Angular5Sample,代码行数:31,代码来源:index.ts


示例3:

this.router.get('/environment/ui', (req: Request, res: Response, next: NextFunction) => res.json(EnvironmentConfig.getEnvConfig().ui));
开发者ID:bbachi,项目名称:Angular5Sample,代码行数:1,代码来源:gmess.router.ts


示例4:

import { EnvironmentConfig } from 'env-read'

export const ENVIRONMENT_CONFIG = {
    "baseRestURL":EnvironmentConfig.getEnvConfig().baseRestUrl,
    "baseEmailUrl":EnvironmentConfig.getEnvConfig().baseNRGRestEmailUrl,
    "gmeBMFPasswordSetup":EnvironmentConfig.getEnvConfig().setupPasswordUrl,
    "gmessHostInfo":EnvironmentConfig.getEnvConfig().gmessHostInfo,
    "contentURL":EnvironmentConfig.getEnvConfig().contentUrl,
    "pciLogoutUrl":EnvironmentConfig.getEnvConfig().pciLogoutUrl,
};


const DATAACCESS="/dataaccess";
export const ADD_USER_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/addusercall";

export const CHG_ADMIN_FOR_ASSOC_USER_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/chgadminforassouser";
export const DEACTIVATE_USER_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/deactivateuser";
export const DISASSOC_CUST_FROM_USER_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/disasscustfromuser";
export const GET_USERS_ASSOC_TO_BP_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/getusersassotobp";
export const GET_ASSOCIATES_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/getassociate";
export const SEARCH_BRKR_ADMIN_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/searchbrokeradmin";
export const SEARCH_CUST_ADMIN_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/searchcustomeradmin";
export const IS_USER_EXIST_FOR_SAPID_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/isusrexistforsapid";
export const UPDATE_USER_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/updateuser";
export const GET_USER_PROFILE_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/getuserprofile";
export const ASSOCIATE_USER_TO_CUST_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/associateuser2cust";
export const ADD_USER_TXN_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/addusertxn";
export const UPD_BRKR_WITH_NEW_PROP_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/updatebrkrwithnewprop";
export const GET_FIRST_LOGON_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/getfirstlogon";
export const SET_FIRST_LOGON_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/setfirstlogon";
export const GET_CUSTOMER_CONTRACT_DTLS_URL = ENVIRONMENT_CONFIG.baseRestURL+DATAACCESS+"/getcustcontractdtls";
开发者ID:bbachi,项目名称:Angular5Sample,代码行数:31,代码来源:constant.ts



注:本文中的env-read.EnvironmentConfig类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript enzyme.configure函数代码示例发布时间:2022-05-25
下一篇:
TypeScript Entity.is函数代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap