简体   繁体   English

如何在 AWS 中将我的 ASP.NET Core 5 MVC web 应用程序切换到开发模式

[英]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.

相关问题 运行时出现 InvalidOperationException ASP.NET Core MVC Web App - InvalidOperationException while running ASP.NET Core MVC Web App ASP.NET MVC 应用程序主题的暗模式不会切换 - Dark Mode for ASP.NET MVC app theme wont switch ASP.NET Core MVC web 应用程序在更新数据库时抛出错误 - ASP.NET Core MVC web app throws error while updating the database 在 ASP.NET Core 3 MVC Web 应用程序中设置路由 - Setting up routes in ASP.NET Core 3 MVC web app 在 ASP.NET Core MVC Web 应用程序中出现构造函数错误? - Getting constructor error in ASP.NET Core MVC web app? Web 将 ASP.Net Core 部署到 ISS 后的开发模式错误 - Development Mode Error after web deploying ASP.Net Core to ISS 在控制台应用程序中重用来自我的 ASP.NET Core MVC 应用程序的代码:如何进行数据库连接 - Reusing code from my ASP.NET Core MVC app in console app : how to do database connection 如何防止ASP.NET Core MVC App Web API Controller中的CSRF / XSRF - How-to prevent CSRF / XSRF in ASP.NET Core MVC App Web API Controller 如何在与 Web API 通信的 ASP.NET Core MVC 应用程序中使用自定义身份验证/授权? - How to use custom authentication/authorization in an ASP.NET Core MVC app that communicates with a Web API? 我应该如何保护我的 Web 应用程序(ASP.Net Core 3.1 MVC)? - How should i secure my Web Application(ASP.Net Core 3.1 MVC)?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM