fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] doc/samples: question on rollback method


From: Christian Vest Hansen
Subject: Re: [Fab-user] doc/samples: question on rollback method
Date: Fri, 17 Oct 2008 12:45:45 +0200

If you track my git repository (github or nongnu.org) then I have just
pushed out a change that should fix this and make using variables
posible.

On Fri, Oct 17, 2008 at 10:33 AM, Carsten Kraus <address@hidden> wrote:
> Hm, so I´ll try to write a .sh to accomplish the same and only trigger this
> script via fab for now.
> But obviously it would be nice to have such functionality in fabfiles, so:
> no Linux guru around here who has an idea on why the vars are not being
> available?
> Cheers
> carsten
>
>
> 2008/10/14 Christian Vest Hansen <address@hidden>
>>
>> Could be that I never actually tested rolling back like that.
>>
>> Really strange. I can confirm that it dosn't work for me either, but I
>> have no idea why that is.
>>
>> On Tue, Oct 14, 2008 at 5:21 PM, Carsten Kraus <address@hidden>
>> wrote:
>> > Hi folks,
>> > am new to fabric and to Linux in general.
>> > I´m working with the sample provided in /doc/samples as of
>> > commit cc336b5a8210e6b34082aeebef113b6e8d4431eb. (How do U reference git
>> > 'revisions' btw? : )
>> > In the sample´s rollback() there is sth like:
>> > sudo(
>> >         "export PREV=$(ls -1 %(someProjectVar)s|tail -1);" +
>> > ...
>> > )
>> > ..which sets the var $PREV for later use.
>> > However, for me this isnt working - on my box(Ubuntu 8.04 Desktop) the
>> > var
>> > $PREV will just be empty.
>> > I even tried
>> > run(
>> >         "export FOO='bar';" +
>> >         "echo $FOO;"
>> > )
>> > This will also result in an empty 'out:' when I run it from fab - when I
>> > run
>> > this being logged in on the target machine with the same user, it´s
>> > working
>> > fine.
>> > Is there an alternative, how I could store eg. the most recent
>> > foldername in
>> > a var for rolling back purposes?
>> > Apologies, if this is off-topic & thx for any pointer!!
>> > Carsten
>> >
>> >
>> >
>> >
>> > _______________________________________________
>> > 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]