-
Notifications
You must be signed in to change notification settings - Fork 43
DeploymentSettings
This is a c# class that inherits from dropkick.Configuration.DropkickConfiguration. It contains configuration properties for your deployment. You can associate and use this set of properties in the deployment plan.
When describing settings in the plan, 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.
DeploymentSettings.cs
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; }
}
Notice that the names of the properties in the file below are exactly the same as the ones in the file above. This is no accident. They must be an exact match. Any value not found in an ENVIRONMENT.js
file will get a default value based on the property type.
LOCAL.js
{
WebsitePath : "~\\web\mypath",
HostServicePath : "~\\services\mypath",
ServiceStartMode : "Automatic",
VirtualDirectorySite : "Default Web Site",
VirtualDirectoryName : "myapp",
DbName : "MyDatabase",
DbSqlFilesPath : "..\\database\\mydatabase",
RoundhousEMode : "DropCreate"
}