[英]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. 我要做的是以下几点。
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.