fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] local_for_host not running anymore ?


From: Loic d'Anterroches
Subject: [Fab-user] local_for_host not running anymore ?
Date: Wed, 03 Sep 2008 20:10:07 +0200
User-agent: Thunderbird 2.0.0.16 (X11/20080724)

Hello,

I have the following fab file which is not working anymore:

set(
    fab_user = 'www-data',
    fab_mode = 'rolling',
    deploy_to = '/home/www/websites/pluf.org/',
    local_docroot = '/home/loa/Websites/pluf.org/docroot/',
    build_script = '/home/loa/Projects/pluf/website/cms/generate.php',
    fab_debug = False,
)

def production():
    "Configures Fabric for production environment."
    set(env='production')
    set(fab_hosts=['methane.ceondo.com'])

def build():
    "Build the latest version of Pluf.org."
    require('env', provided_by=['production'])
    local_per_host('php %(build_script)s', fail='abort')

def deploy():
    "Build the project and deploy it to a specified environment."
    require('env', provided_by=['production'])
    build()
    deploy_files()

def deploy_files():
    require('env', provided_by=['production'])
    local_per_host('rsync -r %(local_docroot)s
%(fab_user)address@hidden(fab_host):%(deploy_to)s', fail='abort')

When I run fab production deploy, the output is:
   Fabric v. 0.0.8, Copyright (C) 2008 Christian Vest Hansen.
   Fabric comes with ABSOLUTELY NO WARRANTY; for details type `fab
warranty'.
   This is free software, and you are welcome to redistribute it
   under certain conditions; type `fab license' for details.

Running production...
Running deploy...
Done.

But nothing is done.

Help welcome.
loïc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]