[英]Can I publish a ASP.NET Core app into an Azure AppService on a Linux Service Plan from Visual Studio?
I just need to deploy a aspnet core app into a Linux Service Plan. 我只需要将aspnet核心应用程序部署到Linux服务计划中。 I tried pre-creating the Linux service plan (into it's own Resource Group) from portal, and then starting the publish profile creating process in VS, but it does not show the linux Resource Group or Service Plan.
我尝试从门户网站预先创建Linux服务计划(到它自己的资源组中),然后在VS中启动发布配置文件创建过程,但是它没有显示Linux资源组或服务计划。 I can only find references to doing this from a Linux machine using Git-integration.
我只能在使用Git集成的Linux机器上找到有关这样做的参考。
Thanks in advance, 提前致谢,
Jose Parra 何塞·帕拉
Unfortunately, for now we cannot deploy web app to Azure linux service plan through VS. 不幸的是,目前我们无法通过VS将Web应用程序部署到Azure linux服务计划。 It's by design that we can only see windows service plan in VS publish process.
根据设计,我们只能在VS发布过程中看到Windows服务计划。
However there are alternatives for us to choose. 但是,我们还有其他选择。
FTP-- Upload pre-compiled files(under ~/bin/Debug(Release) folder) to website. FTP-将预编译的文件(在〜/ bin / Debug(Release)文件夹下)上传到网站。 Here's the reference .
这是参考 。
Local Git--You may have read this tutorial . 本地Git-您可能已经阅读了本教程 。 Note that Git bash can also be used in Windows.
请注意,Git bash也可以在Windows中使用。
GitHub--Follow this reference to connect VS with your GitHub, then config Deployment option in portal. GitHub-按照此参考将VS与GitHub连接,然后在门户中配置Deploy选项。 After that your code will be deployed automatically once pushed to GitHub.
之后,一旦推送到GitHub,您的代码将自动部署。
There are some other deployment ways like CI/CD aka Continuous Delivery in portal and another source control tool BitBucket. 还有其他一些部署方式,例如CI / CD或门户中的持续交付,以及另一种源代码控制工具BitBucket。 I recommend you to use GitHub as it's simple to operate in VS after configuration.
我建议您使用GitHub,因为配置后在VS中操作起来很简单。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.