def deploy():
    require('settings', provided_by=[production, staging])
    require('branch', provided_by=[stable, master, branch])
    
    with settings(warn_only=True):
        maintenance_up()
        
    checkout_latest()
    gzip_assets()
    deploy_to_s3()
    maintenance_down()
    clear_cache()
Deploy the latest version of the site to the server and restart Apache2.
dataset/ETHPy150Open ireapps/census/censusweb/fabfile.py/deploy