-
Notifications
You must be signed in to change notification settings - Fork 43
ServerMaps
A servermap is a file that contains roles and the physical servers that those roles deploy to for a particular environment. While it is not necessary to spell out every role (if you are not deploying to all roles), it will avoid later confusion (because you can actually specify particular roles to deploy during execution).
The servermap file is just a jsonp file that contains roles and the target physical servers for a particular environment. Each role you want to deploy will need at least one physical location.
Inside the file, for a role deployed to a single location, specify using a string:
DeploymentRole:"location"[,]
as an example: Web:"127.0.0.1",
the comma is included until the last role entry.
For roles deployed to multiple locations, specify using an array of strings:
DeploymentRole:["location1","location2",...,"locationN"]
as an example: Host:["server-one", "server-two"],
##Naming These are always named Environment.servermaps. These should sit right next to the settings files as DK associates them as one unit.
##Example
LOCAL.servermaps
{
Web:"127.0.0.1",
VirtualDirectory:"127.0.0.1",
Host:["127.0.0.1","127.0.0.2"],
Db: "(local)"
}