Skip to content
Rob Reynolds edited this page Oct 28, 2011 · 7 revisions

DropkicK Execution

The syntax for running drop kick is:

dk.exe [command] /environment:ENVIRONMENT_NAME [/ARG_NAME:VALUE] [--SWITCH_NAME]

##Commands
[trace|verify|execute]

trace (default)

do a fake run of the deployment without affecting system.

verify

Verifies you settings and deployments is correctly configured.

execute

perform the deployment.

Arguments

[environment|roles|settings|deployment]

environment

DK expects you to pass in the environment you are targeting. This is core to setting up what settings files and servermaps it will be looking for when executing. If you pass in LOCAL, it will start to look for LOCAL.js and LOCAL.servermaps.
/environment:LOCAL

roles

The name of the role you want to deploy. If missing, the default is to deploy all roles.
/roles:Web,Host

settings

Path to the directory containing the settings files. Default is '.\settings' relative to the current working directory.
/settings:..\settings

deployment

The assembly or class to use for the deployment. If argument is missing, dropkick will search for a dll ending with 'Deployment' then pass that name in as the deployment assembly. The default is relative to where dk is, not the current working directory. (NOTE: We have talked about changing this behavior to scan the current directory instead of dk.exe directory)
/deployment:..\deploys\somename.deployment.dll

  • SomeName.Deployment.dll (path to the assembly containing your deployment class)
  • OR SomeName.Deployment.StandardDepoy (a classname, lack of .dll)

Switches

[silent]

Silent

Unattended installation (this is a new feature, so some tasks may not yet adhere to it) --silent

Examples

dk.exe execute
The above deploys all roles of Deployment.dll (seated next to dk.exe) to the LOCAL environment looking for .\settings\LOCAL.servermaps and .\settings\LOCAL.js.

dk.exe execute /deployment:..\deployments\somename.deployment.dll /environment:TEST /settings:..\settings /roles:Web,Host
This deploys just the Web,Host roles of somename.deployment.dll to the TEST environment looking for ..\settings\TEST.servermaps and ..\settings\TEST.js.

dk.exe execute /environment:DEV --silent
The above silently deploys all roles of Deployment.dll (seated next to dk.exe) to the DEV environment looking for .\settings\DEV.servermaps and .\settings\DEV.js.

You can also run dk /? for current help settings.

Clone this wiki locally