fab-user
[Top][All Lists]
Advanced

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

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


From: Jeff Forcier
Subject: Re: [Fab-user] NameError: name 'config' is not defined
Date: Fri, 17 Jul 2009 22:20:08 -0400

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 disregard the old webpage and go by
the new one, which is being updated with more examples. Also, please
let me know if there was something on the old page that prevented you
from jumping straight to the new one at fabfile.org -- I probably need
to update the big red note so it's more current.

Best,
Jeff

On Fri, Jul 17, 2009 at 9:59 PM, Xinan Wu<address@hidden> wrote:
> 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 Hunsaker<address@hidden> wrote:
>> 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 call last):
>>
>>   File "build\bdist.win32\egg\fabric\main.py", line 398, in main
>>
>>   File "build\bdist.win32\egg\fabric\main.py", line 117, in load_fabfile
>>
>>   File "D:\DJANGO~2\CALLRE~2\fabfile.py", line 1, in <module>
>>
>>     config.fab_hosts = [‘myHost.com']
>>
>> NameError: name 'config' is not defined
>>
>>
>>
>> Using fabric version 0.9b1.  On a WinXP box.
>>
>>
>>
>> Trevor Hunsaker
>>
>> _______________________________________________
>> 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
>




reply via email to

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