Replies: 2 comments
-
|
I need this example as well😐 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
After looking at the code of aspire you can use and then you will be able to use using Microsoft.Extensions.Hosting;
var builder = DistributedApplication.CreateBuilder(args);
if(builder.Environment.IsStaging())
{
// do something specifig for this environment
}and now it will read the appsetting.Staging.json instead of appsettings.Development.json |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Does anyone know of any examples and/or links on how to do this? maybe somehow use appsettings.Development.json -> appsettings.Staging.json -> appsettings.Production.json
Anyone have any articles on how to Aspire Multi Environment deployments ?
Beta Was this translation helpful? Give feedback.
All reactions