prod.env.js 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. 'use strict'
  2. const findServer = require('../findAddr')
  3. // /** 正式服务器地址 */
  4. // const PROD_HOST = "wyservice.gzbfdc.com"
  5. // /** 正式服务器端口号 */
  6. // const PROD_PORT = 5008
  7. /** 测试服务器地址 */
  8. const PROD_HOST = 'wyappcs.gzbfdc.com'
  9. /** 测试服务器端口号 */
  10. const PROD_PORT = 5708
  11. /** 微信首页地址 */
  12. const wechatRootUrl = "wechat/#/index"
  13. const currFile = __filename.split("/").pop()
  14. let serverConfig = {
  15. /**
  16. * 正式环境
  17. * 【注】如果没有端口号,port填null
  18. */
  19. /** 报事报修地址 */
  20. crm400: {
  21. addr: PROD_HOST,
  22. port: PROD_PORT,
  23. path: '/landcrm'
  24. },
  25. /** 商城地址 */
  26. walter: {
  27. addr: PROD_HOST,
  28. port: PROD_PORT,
  29. path: '/community'
  30. },
  31. /** 会所接口地址 */
  32. club: {
  33. addr: PROD_HOST,
  34. port: PROD_PORT,
  35. path: '/community'
  36. },
  37. /** 微信运营-管家地址 */
  38. houserkeep: {
  39. addr: PROD_HOST,
  40. port: PROD_PORT,
  41. path: '/wxmanage/steward'
  42. },
  43. /** 微信运营-活动地址 */
  44. activity: {
  45. addr: PROD_HOST,
  46. port: PROD_PORT,
  47. path: '/wxmanage/activity'
  48. },
  49. /** 微信运营-公告 */
  50. article: {
  51. addr: PROD_HOST,
  52. port: PROD_PORT,
  53. path: '/wxmanage/media'
  54. },
  55. /** 微信运营-管家 */
  56. steward: {
  57. addr: PROD_HOST,
  58. port: PROD_PORT,
  59. path: '/wxmanage/steward'
  60. },
  61. /** 微信运营-问卷调查 */
  62. question: {
  63. addr: PROD_HOST,
  64. port: PROD_PORT,
  65. path: '/wxmanage/question'
  66. },
  67. /** 收费 */
  68. charge: {
  69. addr: PROD_HOST,
  70. port: PROD_PORT,
  71. path: '/voucher/gzb'
  72. },
  73. /** 用餐预定、会议室预定 */
  74. activiti: {
  75. addr: PROD_HOST,
  76. port: PROD_PORT,
  77. path: '/activiti'
  78. },
  79. /** 装修申请 */
  80. decorationManage: {
  81. addr: PROD_HOST,
  82. port: PROD_PORT,
  83. path: '/decorationManage'
  84. },
  85. /** 物品放行 */
  86. itemPassport: {
  87. addr: PROD_HOST,
  88. port: PROD_PORT,
  89. path: '/decpassManagement'
  90. },
  91. /** 物品放行 */
  92. itemHouse: {
  93. addr: PROD_HOST,
  94. port: PROD_PORT,
  95. path: '/wf'
  96. },
  97. /** qpi */
  98. qpi: {
  99. addr: 'http://101.37.179.25',
  100. port: 5802,
  101. path: '/'
  102. },
  103. /** 尾房 */
  104. gf: {
  105. addr: PROD_HOST,
  106. port: PROD_PORT,
  107. path: '/gf'
  108. },
  109. }
  110. module.exports = {
  111. NODE_ENV: '"production"',
  112. domain: JSON.stringify(PROD_HOST),
  113. wxRootUrl: JSON.stringify(wechatRootUrl),
  114. currProjectName: '"ebeicloud"',
  115. hostConfig: JSON.stringify(serverConfig),
  116. findAddr: findServer,
  117. Url:'"http://180.168.37.139"'
  118. }