prod.env.js 895 B

12345678910111213141516171819202122232425262728293031323334
  1. 'use strict'
  2. let HOST = process.argv.splice(2)[0] || 'prodsd';
  3. let apiUrl = '""' // 测试环境
  4. let PROJECT = '""'
  5. if (HOST === 'prodjm') {
  6. apiUrl = '"http://www.jmpms.cn"';
  7. PROJECT = '"jm"'
  8. } else if (HOST === 'prodsd') {
  9. apiUrl = '"http://crm.songduwuye.com:5802"' // 宋都生产环境
  10. PROJECT = '"sd"'
  11. } else if (HOST === 'portal') {
  12. apiUrl = '"http://portal.wuyeface.com"' // 门户网站
  13. PROJECT = '"portal"'
  14. } else if (HOST === 'xhwtest') {
  15. apiUrl = '"http://newwy.star-riverliquor.com:2081"' // 星河湾测试
  16. PROJECT = '"xhwwy"'
  17. } else if (HOST === 'xhwwy') {
  18. apiUrl = '"http://wygl.star-river.com:2115"' // 星河湾
  19. PROJECT = '"xhwwy"'
  20. } else if (HOST === 'dongjiu') {
  21. apiUrl = '"https://wuye.djchina.com"' // 星河湾
  22. PROJECT = '"dongjiu"'
  23. }
  24. module.exports = {
  25. NODE_ENV: '"production"',
  26. HOST: '"' + HOST + '"',
  27. PROJECT: PROJECT,
  28. URL: apiUrl
  29. }