什么是部署在IIS上一个Django应用程序推荐的方式? [英] What's the recommended way to deploy a Django app on IIS?

查看:302
本文介绍了什么是部署在IIS上一个Django应用程序推荐的方式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近注册了,因为我开发一个Django应用程序,并从Heroku的将它移植蔚蓝的帐户。我创建在Azure上在Windows Server 2012虚拟机,我已经成功地复制我的应用程序并安装其依赖的虚拟机。我也设法直接在命令行上运行它。现在,我想在IIS下运行它。我已搜索周围净,似乎有很多方法对皮肤这只猫。我想知道的最佳途径。哪种办法一个专业谁正在部署生产现场使用?我有一个很难找出最好的方法是什么。在Django的网站上的文档据说是过时的,它指向另一个网站,其中介绍了如何使用性能工具安装Django。 MSDN上的文档仅包括展示Windows下安装和使用命令行运行或安装到一个Ubuntu虚拟机教程。我期待得到别人谁做了这一点,并能解释对另一优点和一个方法的弱点一些指导。在此先感谢!

I've recently signed up for an Azure account as I am developing a Django application and porting it from Heroku. I've created a Windows Server 2012 vm on Azure and I've managed to copy my application and install its dependencies on the VM. I've also managed to run it directly on the command line. Now I'd like to run it under IIS. I've searched around the net and it seems there are many ways to skin this cat. I'd like to know the best way. Which approach would a professional who is deploying a production site use? I'm having a hard time finding out what the best approach is. The docs on the Django site are reportedly outdated and it points to another site which explains how to install Django with performance tools. The documentation on MSDN only includes tutorials that show installing under Windows and running from the command line or installing to an Ubuntu VM. I'm looking to get some guidance from someone who has done this and could explain the merits and weaknesses of one method over another. Thanks in advance!

推荐答案

在官方的Windows Azure网站上的不同选项请看下图:

Take a look at the different options on the offical Windows Azure website:


  • 的Django的Hello World Web应用程序 :本教程介绍了如何在虚拟机上安装IIS中的Django应用程序。请注意,这是IaaS的,所以如果你想要想用这个你可能会想向外扩展生产部署。这意味着它的你来添加所需的虚拟机,所有这些虚拟机部署应用程序,管理更新,管理安全,...

  • Django Hello World Web Application: This tutorial explains how you can install your Django application in IIS on a Virtual Machine. Note that this is IaaS, so if you want to want to use this for a production deployment you'll probably want to scale out. This means its up to you to add the required VMs, deploy your application on all these VMs, manage updates, manage security, ...

创建使用Django 网站:本教程介绍了如何部署Django应用程序到Windows Azure网站。我认为这是你在找什么。这里的好处是,你可以开始免费的(与其他网站共享,有利于测试),然后移动到共享(还共同主办,自定义域名,伟大的,当你想启动应用程序),最后转移到保留(专用机)。这里的好处是,你可以很容易地向外扩展,甚至多个预留实例,而不必担心部署或管理虚拟机。您可以使用Visual Studio或Git的/到位桶/ TFS集成部署和Windows Azure网站将确保您的网站瞬间(即使你在多个实例保留模式下运行)部署

Creating Web Sites with Django: This tutorial explains how to deploy your Django application to Windows Azure Web Sites. I think this is what you're looking for. The advantage here is that you can start free (shared with other websites, good for testing), then move to shared (still shared hosting, custom domain name, great for when you want to launch your app) and finally move to reserved (dedicated machine). The advantage here is that you can easily scale out, even to multiple reserved instances, without having to worry about deployment or managing the Virtual Machines. You can use Visual Studio or the Git/Bitbucket/TFS integration to deploy and Windows Azure Web Sites will make sure your site is deployed instantly (even if you're running in reserved mode with multiple instances)

这篇关于什么是部署在IIS上一个Django应用程序推荐的方式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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