-
Notifications
You must be signed in to change notification settings - Fork 43
DeploymentSettings
These are the settings files. This is a set of properties that you can associate and use in the deployment plan. When describing settings in the file, you can use the property settings.SomeSetting or {{SomeSetting}} and DK will use interpolation to replace that setting with the actual value.
This is the equivalent of the deployment settings, with the actual values that you want the deployment settings to get at run time. This is separate so that you can make changes in case you need to make changes prior to deployment.
This first file inherits from DropkickConfiguration and is considered the Deployment Settings file. Have a look at the names of the properties. Also, notice that Enumerations are supported (ServiceStartMode RoundhousEMode), not just string, int and boolean values.
public class DeploymentSettings : DropkickConfiguration
{
//directories
public string WebsitePath { get; set; }
public string HostServicePath { get; set; }
//service info
public ServiceStartMode ServiceStartMode { get; set; }
//web stuff
public string VirtualDirectorySite { get; set; }
public string VirtualDirectoryName { get; set; }
//database stuff
public string DbName { get; set; }
public string DbSqlFilesPath { get; set; }
public RoundhousEMode RoundhousEMode { get; set; }
}{
WebsitePath : "~\\web\mypath",
HostServicePath : "~\\services\mypath",
ServiceStartMode : "Automatic",
VirtualDirectorySite : "Default Web Site",
VirtualDirectoryName : "myapp",
DbName : "MyDatabase",
DbSqlFilesPath : "..\\database\\mydatabase",
RoundhousEMode : "DropCreate"
}