问题描述
用于部署典型 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 脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!