使用 .NET Aspire(阿斯拜尔)构建的云原生应用。
| Type | Development | Production |
|---|---|---|
| Dashboard | aigioltemplate-d.aigiol.github.io | aigioltemplate-d.aigiol.github.io |
| Web Frontend(Admin Center) | aigioltemplate-admin.aigiol.github.io | aigioltemplate-admin.aigiol.github.io |
| Web Api(Admin Center) | aigioltemplate-admin-api.speedtest.aigiol.github.io | aigioltemplate-admin-api.speedtest.aigiol.github.io |
| Web Api(Microservices) | aigioltemplate-api.speedtest.aigiol.github.io | aigioltemplate-api.speedtest.aigiol.github.io |
| CDN | aigioltemplate.speedtest.aigiol.github.io | aigioltemplate.speedtest.aigiol.github.io |
| Official Website | aigioltemplate.aigiol.github.io:29005 | aigioltemplate.aigiol.github.io |
- 编译 AigioLTemplate.Server.BuildTools
- 运行命令
AigioLTemplate.Server.BuildTools.exe rename --projName 项目名称 --projNameLower 项目名称全小写 --notTrimServer true --webProtStart 19000
RSA 公钥(SecurityKey Web API)
TODO
- Windows
%APPDATA%\Microsoft\UserSecrets\{TODO_GUID}\secrets.json - Linux/macOS
~/.microsoft/usersecrets/{TODO_GUID}/secrets.json
{
"Parameters:cache-password": "**********",
"AppHost:OtlpApiKey": "**********",
"Parameters:postgres-password": "**********"
}
[ProjPath]\res\postgresql\data
截止 EF Core 9.0,迁移操作与 AOT 不兼容,执行操作时取消 csproj 末尾行中的
<!--<PublishAot>false</PublishAot>-->
避免错误
Unable to create a 'DbContext' of type 'AppDbContext'. The exception 'Model building is not supported when publishing with NativeAOT. Use a compiled model.' was thrown while ataigioltemplateting to create an instance. For the different patterns supported at design time, see https://go.microsoft.com/fwlink/?linkid=851728
Add-Migration {本次变更唯一名称} -Context AppDbContext
Update-Database -Context AppDbContext
Script-Migration {上一次变更唯一名称} -Context AppDbContext
仅打包所有微服务镜像命令
AigioLTemplate.Server.BuildTools spub
仅推送镜像命令
AigioLTemplate.Server.BuildTools spub --push_only --push_name aigioltemplate --push_domain docker.aigiol.github.io:10001
string AigioLTemplate.Server.UnitTest.DockerfileTest.dockerfile_content_template
