I am trying to execute following command for setting the value in environment.js file value in ember js. But value not set.
setx DEPLOY_USER "User name here"
ember build --environment production
in environment.js :
if (process.env.DEPLOY_USER) {
ENV.builderName= process.env.DEPLOY_USER;
}
i will display this "ENV.builderName" in page. i can't hard code this value in environment.js, since this value will change according to who is building the solution.
but the value "process.env.DEPLOY_USER" is always undefined. i'm building solution in Command prompt in Windows OS
Aucun commentaire:
Enregistrer un commentaire