contents of environment-variable-mac.ini file
UNIVER_USER_LOGIN="http://127.0.0.1/api/login"
UNIVER_SEARCH_ORDINARY="http://127.0.0.1/api/search/common"
UNIVER_SEARCH_LABEL="http://127.0.0.1/api/search/common"
UNIVER_SEARCH_VIDEO="http://127.0.0.1/api/search/common"
UNIVER_TASK_MANAGER="http://127.0.0.1/api/task/manager"
UNIVER_PROJECR_URL="67.110.220.11"
UNIVER_PROJECR_PORT=777778888
generate a js file
my shell code
echo "/**
* environment
*
*
*/
var ENV = (function(){
return {
pythonAPI: {
//userLogin : "http://10.23.102.148:5002/api/login", // api
userLogin : "$UNIVER_USER_LOGIN",
video: "", //
searchOrdinary: "$searchOrdinary", //
//searchLabel: "/api/search/result", //
searchLabel: "$searchLabel",
searchVideo : "$UNIVER_SEARCH_VIDEO", //
taskManager: "$taskManager", //
searchUpload: "$searchUpload", //
imageUrlPrefix: "$imageUrlPrefix", // url
videoUrlPrefix: "$videoUrlPrefix" // url
}
}
})();" >> ./service/config/setting.js