[英]How to switch my ASP.NET Core 5 MVC web app to development mode while in AWS
I recently developed a new web application with ASP.NET Core 5 MVC.我最近使用 ASP.NET Core 5 MVC 开发了一个新的 web 应用程序。 On the local IIS web server, the apps runs fine and can connect to the database.在本地 IIS web 服务器上,应用程序运行良好并且可以连接到数据库。
On AWS beanstalk, however, I only get a note that says I have to be in development mode.但是,在 AWS beanstalk 上,我只收到一条说明我必须处于开发模式的说明。
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development",
"ASPNETCORE_HOSTINGSTARTUPASSEMBLIES": "Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation"
}
},
Use the environment properties inside the aws console to set ASPNETCORE_ENVIRONMENT
to Development
, if you are sure that your app should be running in Development mode.如果您确定您的应用程序应该在开发模式下运行,请使用 aws 控制台中的环境属性将ASPNETCORE_ENVIRONMENT
设置为Development
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.