|
|
@ -2,7 +2,7 @@
|
|
|
|
* @Author: ch
|
|
|
|
* @Author: ch
|
|
|
|
* @Date: 2022-05-05 14:40:00
|
|
|
|
* @Date: 2022-05-05 14:40:00
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditors: ch
|
|
|
|
* @LastEditTime: 2022-05-05 15:32:20
|
|
|
|
* @LastEditTime: 2022-05-05 15:40:42
|
|
|
|
* @Description: 根据git分支生成对应环境的环境变量
|
|
|
|
* @Description: 根据git分支生成对应环境的环境变量
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
const fs = require('fs');
|
|
|
|
const fs = require('fs');
|
|
|
@ -12,11 +12,13 @@ const getRepoInfo = require('git-repo-info');
|
|
|
|
const envConfig = {
|
|
|
|
const envConfig = {
|
|
|
|
dev : {
|
|
|
|
dev : {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
base_url: 'dev'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
test : {
|
|
|
|
test : {
|
|
|
|
base_url: 'xxx'
|
|
|
|
base_url: 'xxx'
|
|
|
|
},
|
|
|
|
},
|
|
|
|
reslese : {
|
|
|
|
reslese : {
|
|
|
|
|
|
|
|
base_url: 'xxx'
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
prod : {
|
|
|
|
prod : {
|
|
|
|