Django的最佳Fabric脚本 [英] Best Fabric scripts for Django

查看:109
本文介绍了Django的最佳Fabric脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

部署典型Django项目的最佳库存Fabric脚本是什么? Fabric看起来很不错,但似乎要求您从头开始编写自己的部署脚本。来自Capistrano,我想从其他人测试而不是从头开始编写一些更加开箱即用的东西开始。

What are the best stock Fabric scripts for deploying a typical Django project? Fabric looks very good, but seems to require you to start from scratch and write your own deployment script. Coming from Capistrano, I'd like to start with something that works more out-of-the-box that others have tested rather than writing one from scratch.

理想情况下,我希望同步数据库,使用South执行迁移,备份站点和数据库,并可以回滚以前的部署。

Ideally I'd like one that syncs the database, performs migrations using South, backs up the site and database, and can roll back previous deploys.

推荐答案

由于每个人的环境不同,大多数Fabric脚本将彼此不同。因此,任何东西的库存面料脚本可能永远都不存在。

Since everyone's environment is different, most Fabric scripts are going to be different from each other. So a "stock" Fabric script for anything will likely never exist.

面料让您轻松创建自己的面料。我发现有用的几个链接是:

Fabric allows you to easily create your own. A couple links I found useful are:

  • Fabric, Django, Git, Apache, mod_wsgi, virtualenv and pip deployment
  • Deploying Django with Fabric

这篇关于Django的最佳Fabric脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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