Add npm app to Aspire resources
This commit is contained in:
@@ -7,9 +7,15 @@ IResourceBuilder<PostgresDatabaseResource> postgres = builder.AddPostgres(Consta
|
||||
.WithDataVolume()
|
||||
.AddDatabase(Constants.Database.Name);
|
||||
|
||||
builder
|
||||
IResourceBuilder<ProjectResource> api = builder
|
||||
.AddProject<Projects.Vegasco_Server_Api>(Constants.Projects.Api)
|
||||
.WithReference(postgres)
|
||||
.WaitFor(postgres);
|
||||
|
||||
builder
|
||||
.AddNpmApp("Vegasco-Web", "../Vegasco-Web")
|
||||
.WithReference(api)
|
||||
.WaitFor(api)
|
||||
.WithHttpEndpoint(targetPort: 4200);
|
||||
|
||||
builder.Build().Run();
|
||||
|
||||
Reference in New Issue
Block a user