mirror of
https://github.com/meysamhadeli/booking-microservices.git
synced 2026-04-10 17:59:38 +08:00
docs: add aspire documentation
This commit is contained in:
parent
756f166711
commit
da1a3df324
14
README.md
14
README.md
@ -34,6 +34,7 @@
|
|||||||
- [Upgrade Nuget Packages](#upgrade-nuget-packages)
|
- [Upgrade Nuget Packages](#upgrade-nuget-packages)
|
||||||
- [How to Run](#how-to-run)
|
- [How to Run](#how-to-run)
|
||||||
- [Config Certificate](#config-certificate)
|
- [Config Certificate](#config-certificate)
|
||||||
|
- [Aspire](#aspire)
|
||||||
- [Docker Compose](#docker-compose)
|
- [Docker Compose](#docker-compose)
|
||||||
- [Kubernetes](#kubernetes)
|
- [Kubernetes](#kubernetes)
|
||||||
- [Build](#build)
|
- [Build](#build)
|
||||||
@ -204,13 +205,24 @@ Run the following commands to [Config SSL](https://docs.microsoft.com/en-us/aspn
|
|||||||
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p password
|
dotnet dev-certs https -ep %USERPROFILE%\.aspnet\https\aspnetapp.pfx -p password
|
||||||
dotnet dev-certs https --trust
|
dotnet dev-certs https --trust
|
||||||
```
|
```
|
||||||
***Note:** for running this command in `powershell` use `$env:USERPROFILE` instead of `%USERPROFILE%`*
|
> Note: for running this command in `powershell` use `$env:USERPROFILE` instead of `%USERPROFILE%`*
|
||||||
|
|
||||||
#### macOS or Linux
|
#### macOS or Linux
|
||||||
```bash
|
```bash
|
||||||
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
|
dotnet dev-certs https -ep ${HOME}/.aspnet/https/aspnetapp.pfx -p $CREDENTIAL_PLACEHOLDER$
|
||||||
dotnet dev-certs https --trust
|
dotnet dev-certs https --trust
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Aspire
|
||||||
|
|
||||||
|
To run the application using the `ASPIRE App Host`, execute the following command from the solution root:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
dotnet run --project ./src/Aspire/src/AppHost
|
||||||
|
```
|
||||||
|
|
||||||
|
> Note:The `ASPIRE dashboard` will be available at `http://localhost:18888`
|
||||||
|
|
||||||
> ### Docker Compose
|
> ### Docker Compose
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Binary file not shown.
|
Before Width: | Height: | Size: 541 KiB After Width: | Height: | Size: 643 KiB |
@ -1,30 +1,18 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json.schemastore.org/launchsettings.json",
|
"$schema": "http://json.schemastore.org/launchsettings.json",
|
||||||
"profiles": {
|
"profiles": {
|
||||||
"https": {
|
"AppHost": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"dotnetRunMessages": true,
|
"dotnetRunMessages": true,
|
||||||
"launchBrowser": true,
|
"launchBrowser": true,
|
||||||
"applicationUrl": "https://localhost:7000;http://localhost:7001",
|
"applicationUrl": "http://localhost:18888",
|
||||||
"environmentVariables": {
|
"environmentVariables": {
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
"ASPNETCORE_ENVIRONMENT": "Development",
|
||||||
"DOTNET_ENVIRONMENT": "Development",
|
"DOTNET_ENVIRONMENT": "Development",
|
||||||
|
"ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true",
|
||||||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://otel-collector:4317",
|
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://otel-collector:4317",
|
||||||
"ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL": "http://otel-collector:4318"
|
"ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL": "http://otel-collector:4318"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"http": {
|
|
||||||
"commandName": "Project",
|
|
||||||
"dotnetRunMessages": true,
|
|
||||||
"launchBrowser": true,
|
|
||||||
"applicationUrl": "http://localhost:7001",
|
|
||||||
"environmentVariables": {
|
|
||||||
"ASPNETCORE_ENVIRONMENT": "Development",
|
|
||||||
"DOTNET_ENVIRONMENT": "Development",
|
|
||||||
"ASPIRE_DASHBOARD_OTLP_ENDPOINT_URL": "http://otel-collector:4317",
|
|
||||||
"ASPIRE_DASHBOARD_OTLP_HTTP_ENDPOINT_URL": "http://otel-collector:4318",
|
|
||||||
"ASPIRE_ALLOW_UNSECURED_TRANSPORT": "true"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user