Christian,
Thanks for the response - glad you liked it!
You're writing `config.fab_hosts = ['...']` instead of `set(fab_hosts
= ['...'])` but the `config` object isn't in Fabric 0.0.9.
In Fabric 0.0.9, 'set(fab_hosts = ['..'])' doesn't appear to work. I
first learned of this here:
http://lethain.com/entry/2008/nov/04/deploying-django-with-fabric/
Now that I re-read his comment at the very bottom - I should note that
I pulled 0.0.9 from the Git repository - which is apparently why I
must use config.fab_hosts.
Another strange thing is that you explicitly set the `fab_host`
variable, apparently because it doesn't quite work. I'm pretty sure it
does work in 0.0.9 as-released.
I think this might be a bug related to using load() for the external
functions, but I'm not sure. I tried a number of things, but was
unable to get $(fab_host) to work in any fab functions in my build. I
should setup a test build to demonstrate. I believe I was getting
'KeyError'. As you mentioned, it may be due to the way I'm setting
config.fab_hosts.
Lastly, I use `local("echo something")` in my examples/samples a lot,
but those are really just contrived examples... Really, the only
reason you would do that instead of just `print("ing")` is to get
`$(variable)` expantion.
Makes sense - I guess I was just glued to the fab functions at that
point :)
Thanks, again!
Nick Sergeant
www.nicksergeant.com
[EMAIL PROTECTED]
(315) 719-2047
On Nov 6, 2008, at 5:34 PM, Christian Vest Hansen wrote:
Hi. It's a nice article and I enjoyed reading it.
A couple of things had me mulling...
You're writing `config.fab_hosts = ['...']` instead of `set(fab_hosts
= ['...'])` but the `config` object isn't in Fabric 0.0.9.
Another strange thing is that you explicitly set the `fab_host`
variable, apparently because it doesn't quite work. I'm pretty sure it
does work in 0.0.9 as-released.
So I'm guessing that your examples are based on some more recent
in-development version of fabric - that would certainly explain the
`config` object. And then `fab_host` not working properly would be a
regression.
Lastly, I use `local("echo something")` in my examples/samples a lot,
but those are really just contrived examples... Really, the only
reason you would do that instead of just `print("ing")` is to get
`$(variable)` expantion.
On Thu, Nov 6, 2008 at 11:05 PM, Nick Sergeant
<[EMAIL PROTECTED]> wrote:
Hi, guys! I was new to Fabric about 8 hours ago, and have since
improved my
workflow massively.
This is certainly a testament to the value Fabric brings to the
development
community.
I wrote a blog post detailing my experience with it today, and
would love if
anyone has any comments or suggestions on it:
http://nicksergeant.com/blog/programming/developing-and-deploying-applications-fabric-and-subversion
Thanks!
Nick Sergeant
www.nicksergeant.com
[EMAIL PROTECTED]
(315) 719-2047
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user
--
Venlig hilsen / Kind regards,
Christian Vest Hansen.
_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user