简体   繁体   English

Django在Linux Ubuntu上的部署

[英]Django Deployment on Linux Ubuntu

I am going to seploy my first Django application to a cloud server like Amazon EC2 and the system is Linux Ubuntu. 我将把我的第一个Django应用程序部署到Amazon EC2之类的云服务器上,系统是Linux Ubuntu。 But I cannot find a very good step-by-step tutorial for the deployment. 但是我找不到用于部署的很好的分步教程。

Could you recommend one? 你能推荐一个吗?

And I also have the following questions: 我还有以下问题:

  1. What is the most recommended environment? 最推荐的环境是什么? Gunicorn, Apache+mod_python or ohters? Gunicorn,Apache + mod_python还是其他?
  2. How to deploy my code? 如何部署我的代码? I am using mac and should I use ftp or check out from my github repository? 我正在使用Mac,应该使用ftp还是从github存储库中签出?

Thank you! 谢谢!

Here is my stack: Nignx + gunicon, Supervisor 这是我的堆栈:Nignx + gunicon,主管

Deployment, If you are planing frequent releases you should be looking at something like Fabric. 部署,如果您计划频繁发布,则应该考虑使用Fabric之类的工具。 Even of not frequent Fabric is a very good tool to be aware of. 即使不经常使用,Fabric也是一个非常好的工具。

People have preference in terms of stack, but this one has been working great for me. 人们对堆栈有偏爱,但是这一点对我来说一直很好。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM