如何从Mac将Web应用程序部署到Azure云服务? [英] How to deploy a web app to Azure Cloud Service from a Mac?

查看:119
本文介绍了如何从Mac将Web应用程序部署到Azure云服务?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Azure的新手,并且一直在尝试将简单的Web应用程序部署到我的新Azure云服务中-但是我只拥有一台Mac.我从Microsoft看到的所有教程都说您可以从Visual Studio进行发布"并选择云服务",但是我只将Azure网站视为一个选项,大概是因为我在Mac上.似乎.NET Azure SDK仅适用于Windows,奇怪的是,当我尝试安装其他Azure SDKS(试用节点,python)时,安装程​​序只是说由于找不到要安装的软件而无法安装软件".

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. 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. 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'.

有人知道我想做的事是否可能,如果可以,怎么办?

Does anyone know if what I'm trying to do is even possible, and if so how to do it?

谢谢!

推荐答案

我们也在Mac上进行了所有开发,但是我们将Azure DevOps用于CI.

We also do all our development on Mac, but we use Azure DevOps for CI.

我快速浏览了一下,看来您也可以从Azure CLI部署应用程序服务.有几种方法可以从Git存储库,从zip文件等推送源.有关通过zip进行部署的信息,请参见az webapp deployment source config-zip.

I had a quick look and it seems that you can deploy an App Service from the Azure CLI also. 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.

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

然后,您可以制作一个简单的deploy.sh文件,以处理将应用程序压缩和部署到Azure的所有步骤.

You could then make a simple deploy.sh file to handle all the steps of zipping up and deploying your app to azure.

这篇关于如何从Mac将Web应用程序部署到Azure云服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆