Skip to content

fundamentals/environments.md "Working with Multiple Environments" #2028

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
5 tasks done
Rick-Anderson opened this issue Oct 31, 2016 · 2 comments
Closed
5 tasks done
Labels
Milestone

Comments

@Rick-Anderson
Copy link
Contributor

Rick-Anderson commented Oct 31, 2016

@Rick-Anderson
Copy link
Contributor Author

per customer

Working on Linux here and trying to run in a Development environment because "dotnet run" defaults to Production. The docs suggests to set the variable Hosting__Environment, e.g.: "export Hosting__Environment=Development". This does not work, instead use "export ASPNETCORE_ENVIRONMENT=Development" and you'll be happy coding

@Rick-Anderson
Copy link
Contributor Author

per DISQUS customer:

After modifying the ASPNET_ENV (orHosting:Environment) variable in the web profile to be set to Staging, the launchSettings.json file in our sample project is shown below...

It took a while for me to figure out I had to change the profile selection at the top, perhaps a screengrab of that that with the dropdown for Profile highlighted would help, e.g.:
original 1

@Rick-Anderson Rick-Anderson added this to the 1.0.1 milestone Oct 31, 2016
@tdykstra tdykstra modified the milestones: Backlog, 1.0.1 Dec 5, 2016
@tdykstra tdykstra modified the milestones: December-2016, Backlog Dec 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants