Skip to content

Commit 9ceb19a

Browse files
committed
tweaks
1 parent 8d2f285 commit 9ceb19a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/fundamentals/persist-data-volumes.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.topic: how-to
77

88
# Persist .NET Aspire app data using volumes
99

10-
In this article, you learn how to configure .NET Aspire apps to persist data across app launches using volumes. A continuous set of data during local development is useful in many scenarios. Various .NET Aspire container types are able to leverage volume storage, such as PostreSQL, Redis and Azure Storage.
10+
In this article, you learn how to configure .NET Aspire apps to persist data across app launches using volumes. A continuous set of data during local development is useful in many scenarios. Various .NET Aspire resource container types are able to leverage volume storage, such as PostreSQL, Redis and Azure Storage.
1111

1212
## When to use volumes
1313

@@ -45,22 +45,22 @@ In this example:
4545

4646
## Create a persistent password
4747

48-
Named volumes require a consistent password between app launches. Use the following command to set a local password in your .NET user secrets:
48+
Named volumes require a consistent password between app launches. Run the following command in your project directory to set a local password in your .NET user secrets:
4949

5050
```dotnetcli
5151
dotnet user-secrets set samplepassword <password>
5252
```
5353

54-
You can retrieve this password in your app using the following code:
54+
Retrieve this password in your app using the following code:
5555

5656
```csharp
5757
// Retrieve the password you created from user secrets
5858
var password = builder.Configuration["samplepassword"];
5959
```
6060

61-
### Configure volumes using the AppHost
61+
## Configure volumes using the AppHost
6262

63-
Add the following code to the _Program.cs_ file in your **AppHost** project to persist your desired data across app launches:
63+
Volumes are configured in the _Program.cs_ file in the **.AppHost** project of your .NET Aspire apps. The following code demonstrates how to configure a volume for various .NET Aspire resources:
6464

6565
:::code source="~/aspire-samples/samples/VolumeMount/VolumeMount.AppHost/Program.cs":::
6666

0 commit comments

Comments
 (0)