Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (pypi.python.org).
Help us improve Python packaging - Donate today!

Set of Fabric functions to help deploying websites.

Project Description

Fabliip is a set of functions aimed at helping developers deploy their websites. It is meant to be used as part of Fabric scripts to ease for example the backup of a database, the upgrade of a remote git repository, etc.

Installation

Install it with pip:

pip install fabliip

Usage

Docs are hosted on readthedocs: http://fabliip.rtfd.org/

You should be able to to get an idea on the different helpers Fabliip provides by browsing the source code, but here’s a minimal example that will allow you to easily enable/disable the maintenance mode on a Drupal site:

from fabric.api import env, task
from fabliip import drupal


@task
def prod():
    env.project_root = '/var/www/mysite'
    env.drupal_root = os.path.join(env.project_root, 'src')
    env.hosts = ['yourhost.com']


@task
def enable_maintenance_mode():
    drupal.set_maintenance_mode(True)

You should now be able to call fab prod enable_maintenance_mode to enable the maintenance mode on your prod instance.

The env.project_root variable is important here because it’s needed by the drupal module. Please refer to the docs of any module you use to check if there’s any env variable that must be defined.

Release History

Release History

This version
History Node

0.3.9

History Node

0.3.8

History Node

0.3.7

History Node

0.3.6

History Node

0.3.5

History Node

0.3.4

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.0

History Node

0.1.0

Download Files

Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
fabliip-0.3.9.tar.gz (8.8 kB) Copy SHA256 Checksum SHA256 Source Jan 20, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting