fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] workon


From: Jeff Forcier
Subject: Re: [Fab-user] workon
Date: Sun, 13 Mar 2011 23:45:40 -0400

Hi Jiri,

Offhand I don't see anything obviously wrong, workon should work as
long as it's being used as a prefix, and your use of virtualenvwrapper
seems fine. See below for some ideas on figuring out what's up.

> with('workon mymy'):
>    run('ls')

Did you mean "with prefix(..." instead of "with(..." ? I assume that
was just a typo in your mail but wanted to double check.

> Of course, the commands work fine if I log in to the remote system manually
> with ssh.

Try calling fab with "--show=debug" and note the commands Fabric
prints out (e.g. [hostname] run: /bin/bash -l -c "workon mymy && ls").
Then try copy/pasting them (starting with the /bin/bash!) into your
real shell session on the server, and see if it still works, or if it
breaks.

Chances are the "full" versions will break even on the real shell, and
then you can try to figure out why (or show us what those commands are
and maybe we can tell).


Best,
Jeff

-- 
Jeff Forcier
Unix sysadmin; Python/Ruby engineer
http://bitprophet.org



reply via email to

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