Console Deployment
Run your Kittox application as a headless console server, ideal for Docker containers or environments without a desktop.
When to use
- Docker containers
- Headless Windows Server Core
- CI/CD test environments
- Linux via Wine (experimental)
The .dpr file
The console application requires a separate .dpr:
pascal
program MyAppConsole;
uses
Kitto.Console.Start,
Controllers, Rules, UseKitto;
begin
TKConsoleStart.Start;
end.Server configuration
Same Config.yaml as Standalone:
yaml
Server:
Port: 8080
BindAddress: ''
ThreadPoolSize: 20Running
batch
MyAppConsole.exeThe server starts and listens on the configured port. Press Ctrl+C to stop.
To run with a custom configuration file:
batch
MyAppConsole.exe -c ConfigProduction.yamlDocker example
dockerfile
FROM mcr.microsoft.com/windows/servercore:ltsc2022
COPY MyAppConsole.exe C:/app/
COPY Home/ C:/app/Home/
WORKDIR C:/app
EXPOSE 8080
CMD ["MyAppConsole.exe"]See also
- Standalone Deployment — desktop GUI mode
- Windows Service Deployment — Windows Service mode
- Deployment Overview — all deployment modes
