fab-user
[Top][All Lists]
Advanced

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

[Fab-user] default "global" domain but not host?


From: Jorge Vargas
Subject: [Fab-user] default "global" domain but not host?
Date: Tue, 7 Jul 2009 17:21:56 -0400

Hi guys,

I have been thinking of this and I'll like your opinion.

most (if not all) of the time you will be handling several
environments for the same project which normally contain the same
domain. The classical example will be

test.example.com
prod1.example.com
prod2.example.com
db1.example.com
db2.example.com

so I was thinking of having something along the lines of

env.domain = 'example.com'

@hosts('staging')
def install_htaccess():
.....

@hosts('prod1','prod2')
def install_ssl():
.....


is this something worth considering adding to fabric itself? for api
clarity I think we should pick a different function make @machine or
@subhost (I'm terrible with names)




reply via email to

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