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

查看:19
本文介绍了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 脚本也会彼此不同.因此,任何事物的库存"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 可让您轻松创建自己的.我发现有用的几个链接是:

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

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

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