Django项目天青云服务而Visual Studio的 [英] Django project to Azure Cloud Services without Visual Studio

查看:215
本文介绍了Django项目天青云服务而Visual Studio的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我探索MS Azure以及有一个我想与云服务使用一个非常简单的应用Django项目,但我无法弄清楚如何做到这一点。

I'm exploring MS Azure, and have a very simple one-app Django project that I'd like to use with Cloud Services, but I can't figure out how to do it.

我已经安装了基于节点的Azure的跨平台的CLI工具,而我试图找出创造必要的基础设施,要坚持在Azure云服务的Django项目(注过程:不Azure的VM,不Azure网站)。我见过的教程使用Visual Studio要做到这一点,但我在Mac / Linux操作系统。

I've got the Node-based Azure cross-platform CLI tools installed, and I'm trying to figure out the process of creating the necessary infrastructure to stick the Django project on Azure Cloud Services (note: not Azure VM, not Azure Web Sites). The tutorials I've seen use Visual Studio to do this, but I'm on Mac/Linux.

必须有一个过程如何产生必要的文件(.cspkg,.cscfg等)没有VS,但我还没有发现任何关于它的教程或文档。你如何生成或构建这些文件,以及任何其他样板,无需使用VS的,这有什么实际部署code到云的过程?

There must be a process how to produce the necessary files (.cspkg, .cscfg etc.) without VS, but I haven't found any tutorials or documentation about it. How do you generate or construct those files, and any other boilerplate, without the use of VS, and what's the process of actually deploying the code to the cloud?

推荐答案

最好使用PowerShell的是:你需要新-AzureServiceProject 添加-AzureDjangoWebRole ,并在最后你需要用它打包保存-AzureServiceProjectPackage ,事后你可以上传或者通过门户网站或通过与cmdlet的新-AzureService 和PowerShell < STRONG>发布 - AzureServiceProject希望这可以帮助您?

best to use is powershell : you'll need "New-AzureServiceProject", "Add-AzureDjangoWebRole" and in the end you need to package it with Save-AzureServiceProjectPackage, afterwards you can upload it either through the portal or through powershell with the cmdlets New-AzureService and "Publish-AzureServiceProject" hope this helps you?

这篇关于Django项目天青云服务而Visual Studio的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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