Hello Everyone,

We are using angular js 2 in one of our projects, and using angular-cli for
building the projects.

Right now, we have extracted the properties into environment.ts files,
which include api endpoints and other  things. and we have one file for
each environment as per the documentation. we have multiple environmentss
like, DEV, QA, STAGE and PROD.

Right now we build for specific environment and move the dist folder to
ngnix server for deployment.

The problem over here is, we have to build it separately for every
environment. Is there a way where we build it once and same build works for
all environments.

eg.
ng build --env=dev
ng build --env=qa
ng build --env=stage
ng build --env=prod


Regards,
Jagadesh






-- 
Regards
Jagadesh

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to