fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] local_for_host not running anymore ?


From: Christian Vest Hansen
Subject: Re: [Fab-user] local_for_host not running anymore ?
Date: Thu, 4 Sep 2008 12:51:26 +0200

On Thu, Sep 4, 2008 at 10:00 AM, Loic d'Anterroches
<address@hidden> wrote:
> Resent, forgot to put the list in copy, sorry.

I normally don't comment peoples spelling, but I think the resent vs.
resend mistake is pretty funny :)

> ---
>
> Hi Jeff, hi Christian,
>
> Sorry for the delay in the answer, we got a big thunderstorm yesterday
> evening at home (I live in Germany) and prefered to unplug my systems.
>
>> Bug fixed. Thanks for the report.
>
> Thanks a lot. And by the ways, I am following
> git://git.sv.gnu.org/fab.git and always pull when I think I found a bug.
>
> One small thing that would be nice is to chmod +x fabric.py in the
> repository.

Why is that useful? fabric.py does nothing when executed like that -
you need a wrapper script to call the main() function, and that is
generated by setuptools.

You can generate and install a 'fab' wrapper script that is linked
with the source files in  your local repository, with sudo python
setup.py develop.

>
> Thanks for the good work, it is really appreciated,
> loïc
>
>> It was caused by CONNECTIONS being empty if no remote operation has
>> been invoked prior to running local_per_host.
>>
>> This is the second bug fix since 0.0.8 so I wonder if it's time for 0.0.9.
>>
>> On Wed, Sep 3, 2008 at 9:17 PM, Christian Vest Hansen
>> <address@hidden> wrote:
>>> Hi, Loïc.
>>>
>>> I can confirm this bug in my version of 0.0.8.
>>>
>>> Not sure whats causing it.. yet.
>>>
>>> On Wed, Sep 3, 2008 at 9:02 PM, Jeff Forcier <address@hidden> wrote:
>>>> Hi Loic,
>>>>
>>>> What version of Fabric are you using right now? 0.0.7, 0.0.8, a git
>>>> clone (if so, where/who from)?
>>>>
>>>> I seem to recall problems with local_per_host with my own fork of the
>>>> project as I was changing the way things execute; but I also think
>>>> that problem was fixed, and I'm not sure if the issue is something
>>>> that would have cropped up in the main branch of the project.
>>>>
>>>> If we know what version you're using, we can check and see whether
>>>> this is an existing bug in 0.0.8 :)
>>>>
>>>> Regards,
>>>> Jeff
>>>>
>>>> On Wed, Sep 3, 2008 at 2:10 PM, Loic d'Anterroches
>>>> <address@hidden> wrote:
>>>>> 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
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Fab-user mailing list
>>>>> address@hidden
>>>>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>>>>
>>>>
>>>> _______________________________________________
>>>> Fab-user mailing list
>>>> address@hidden
>>>> http://lists.nongnu.org/mailman/listinfo/fab-user
>>>>
>>>
>>>
>>> --
>>> Venlig hilsen / Kind regards,
>>> Christian Vest Hansen.
>>>
>>
>>
>>
>
>
>
>
> _______________________________________________
> Fab-user mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/fab-user
>



-- 
Venlig hilsen / Kind regards,
Christian Vest Hansen.

reply via email to

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