'use strict' let HOST = process.argv.splice(2)[0] || 'prodsd'; let apiUrl = '""' // 测试环境 let PROJECT = '""' if (HOST === 'prodjm') { apiUrl = '"http://www.jmpms.cn"'; PROJECT = '"jm"' } else if (HOST === 'prodsd') { apiUrl = '"http://crm.songduwuye.com:5802"' // 宋都生产环境 PROJECT = '"sd"' } else if (HOST === 'portal') { apiUrl = '"http://portal.wuyeface.com"' // 门户网站 PROJECT = '"portal"' } else if (HOST === 'xhwtest') { apiUrl = '"http://newwy.star-riverliquor.com:2081"' // 星河湾测试 PROJECT = '"xhwwy"' } else if (HOST === 'xhwwy') { apiUrl = '"http://wygl.star-river.com:2115"' // 星河湾 PROJECT = '"xhwwy"' } else if (HOST === 'dongjiu') { apiUrl = '"https://wuye.djchina.com"' // 星河湾 PROJECT = '"dongjiu"' } module.exports = { NODE_ENV: '"production"', HOST: '"' + HOST + '"', PROJECT: PROJECT, URL: apiUrl }