[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] NameError: name 'config' is not defined
From: |
Xinan Wu |
Subject: |
Re: [Fab-user] NameError: name 'config' is not defined |
Date: |
Fri, 17 Jul 2009 18:59:30 -0700 |
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
>
>