简体   繁体   English

如何从Mac将Web应用程序部署到Azure云服务?

[英]How to deploy a web app to Azure Cloud Service from a Mac?

I'm brand new to Azure and have been trying to deploy a simple web app to my new Azure Cloud Service - however I only own a Mac. 我是Azure的新手,并且一直在尝试将简单的Web应用程序部署到我的新Azure云服务中-但是我只拥有一台Mac。 All of the tutorials I've seen from Microsoft say you can go to 'publish' from Visual Studio and select 'Cloud Service', but I only see Azure Websites as an option, presumably because I'm on a Mac. 我从Microsoft看到的所有教程都说您可以从Visual Studio进行“发布”并选择“云服务”,但是我只将Azure网站视为一个选项,大概是因为我在Mac上。 It seems the .NET Azure SDK is only available for Windows, and oddly when I try to install other Azure SDKS (tried node, python) the installer just says 'Could not install software because no software to install was found'. 似乎.NET Azure SDK仅适用于Windows,奇怪的是,当我尝试安装其他Azure SDKS(试用节点,python)时,安装程​​序只是说“由于未找到要安装的软件而无法安装软件”。

Does anyone know if what I'm trying to do is even possible, and if so how to do it? 有谁知道我正在尝试做的事情是否可能,如果可以,怎么办?

Thanks! 谢谢!

I use a Mac with Azure. 我将Mac与Azure一起使用。 What I do is the following. 我要做的是以下几点。

  1. Create a publish folder of the app 创建应用程序的发布文件夹
  2. Deploy it manually through a FTP client such as FileZilla. 通过FTP客户端(例如FileZilla)手动部署它。

You can probably find a ton of tutorials on how to use FileZilla on the internet. 您可能会在互联网上找到大量有关如何使用FileZilla的教程。

Note: if you are building and deploying continuously, I would recommend you use continuous integration and continuous deployment (CICD) which is available in Azure. 注意:如果要连续构建和部署,我建议您使用Azure中可用的持续集成和持续部署(CICD)。

But for beginners, FileZilla is easy and simple. 但是对于初学者来说,FileZilla既简单又容易。

We also do all our development on Mac, but we use Azure DevOps for CI. 我们还在Mac上进行所有开发,但是我们将Azure DevOps用于CI。

I had a quick look and it seems that you can deploy an App Service from the Azure CLI also. 我看了一眼,看来您也可以从Azure CLI部署应用程序服务。 There are a few methods for pushing the source, from a Git repo, from zip file etc. See az webapp deployment source config-zip for deploying via zip. 有几种方法可以从Git存储库,从zip文件等推送资源。有关通过zip进行部署的信息,请参见az webapp deployment source config-zip zip。

https://docs.microsoft.com/en-us/cli/azure/webapp/deployment?view=azure-cli-latest https://docs.microsoft.com/zh-CN/cli/azure/webapp/deployment?view=azure-cli-latest

You could then make a simple deploy.sh file to handle all the steps of zipping up and deploying your app to azure. 然后,您可以制作一个简单的deploy.sh文件,以处理将应用程序压缩和部署到Azure的所有步骤。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何部署到Azure云服务 - How to deploy to Azure Cloud Service 如何在Azure云服务项目中将Node.js Web角色与.NET Web角色一起部署? - How to deploy a Node.js web role along with a .NET web role in azure cloud service project? 如何使用Azure SDK将Web应用程序部署到Azure - how to deploy web app to azure with azure sdk 如何通过Code,.NET从App Service获取Azure Cloud Service详细信息 - How to get Azure Cloud Service details from App service via Code, .NET 从VSTS部署到我的域之外的Azure Web App - Deploy from VSTS to Azure Web App outside of my domain Azure Pipeline部署到Web App Service失败,缺少必需的属性'OutputPath' - Azure Pipeline deploy to Web App Service failing with Missing required property 'OutputPath' 如何将 ASP.NET Web 应用程序部署到 Azure 与现有的 Z9778840A0104CB30C52ZB7 服务器数据库 (76410CB30C52ZB7) 服务器数据库 - How to deploy an ASP.NET Web App to Azure with an existing SQL Server database (Azure Data Studio) Web服务-Azure云服务中未找到文件异常 - Web Service - File Not Found Exception in Azure Cloud Service 用于托管WCF集成服务的Azure Web Apps或Cloud Service - Azure Web Apps or Cloud Service for hosting WCF Integration Service 如何从云Web服务中访问文件? - How to access files from within a cloud web service?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM