Click here to Skip to main content
15,880,364 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,


I have followed this link for developing the Set-up Multiple Environments in Angular:

https://dev.to/mikgross/set-up-multiple-environments-in-angular-376c




I ran the ng serve --c=qa

** Angular Live Development Server is listening on localhost:4200, open your browser on http://localhost:4200/ **


If i will browse the http://localhost:4201 getting error. If I will browse the 4200 its working but my QA is pointing to 4201 .


My question is for QA http://localhost:4201 need load right??If any thing went wrong plz correct me.

Thanks.

What I have tried:

I am pointing to my local host for testing purpose:


environment.qa.ts:


export const environment = {
production: true,
environmentName: 'QA',
apiUrl: 'QA url',
serverUrl:"https://localhost:4201"
};


export const environment = {
production: true,
environmentName: 'Production',
apiUrl: 'production url',
serverUrl:"https://localhost:4204"
};


export const environment = {
production: true,
environmentName: 'Staging',
apiUrl: 'Staging url',
serverUrl:"https://localhost:4203"
};


export const environment = {
production: false,
environmentName: 'Development',
apiUrl: 'development url',
serverUrl:"https://localhost:4200"
};
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900