[Fab-user] NameError: name 'config' is not defined

2009-07-17 Thread Trevor Hunsaker
New to Fabric, just trying out the basics: My fabfile.py is: config.fab_hosts = ['myHost.com'] def test(): Deploy current state of repo to test server run(echo howdy to me) When I run `fab test` I get the following error: Traceback (most recent

Re: [Fab-user] NameError: name 'config' is not defined

2009-07-17 Thread Xinan Wu
change first line to env.hosts = ['myHost.com'] and try again. There was some changes with fabric 0.9 On Fri, Jul 17, 2009 at 3:50 PM, Trevor Hunsakerthunsa...@spillman.com wrote: New to Fabric, just trying out the basics: My fabfile.py is: config.fab_hosts = [‘myHost.com'] def

Re: [Fab-user] NameError: name 'config' is not defined

2009-07-17 Thread Jeff Forcier
Hi Trevor, Xinan is right, config is now env. You can see this change listed here: http://docs.fabfile.org/0.9/compatibility.html#environment-config-variables You'll probably want to read the other items on that page if you ever used Fabric 0.1 or earlier. If you're new to Fabric, please