提交 1d89d9da 编写于 作者: Huan (李卓桓)'s avatar Huan (李卓桓)

restore http port config

上级 450077dc
......@@ -6,6 +6,7 @@
"types": "dist/index.d.ts",
"wechaty": {
"DEFAULT_HEAD": 0,
"DEFAULT_PORT": 8080,
"DEFAULT_PUPPET": "web",
"DEFAULT_PROFILE": "demo",
"DEFAULT_PROTOCOL": "io|0.0.1",
......
......@@ -87,16 +87,17 @@ export type PuppetName = 'web'
export interface ConfigSetting {
DEFAULT_HEAD: number
DEFAULT_PUPPET: PuppetName
DEFAULT_APIHOST: string
DEFAULT_PROFILE: string
DEFAULT_TOKEN: string
DEFAULT_PROTOCOL: string
profile: string
token: string
debug: boolean
DEFAULT_HEAD : number,
DEFAULT_PORT : number,
DEFAULT_PUPPET : PuppetName
DEFAULT_APIHOST : string
DEFAULT_PROFILE : string
DEFAULT_TOKEN : string
DEFAULT_PROTOCOL : string
profile : string
token : string
debug : boolean
head: boolean
puppet: PuppetName
......@@ -152,10 +153,10 @@ Object.assign(config, {
/**
* 3. Service Settings
*/
// Object.assign(config, {
Object.assign(config, {
// get PORT form cloud service env, ie: heroku
// httpPort: process.env['PORT'] || process.env['WECHATY_PORT'] || config.DEFAULT_PORT,
// })
httpPort: process.env['PORT'] || process.env['WECHATY_PORT'] || config.DEFAULT_PORT,
})
/**
* 4. Envioronment Identify
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册