-
Notifications
You must be signed in to change notification settings - Fork 275
WebController
grzryc edited this page Sep 6, 2019
·
4 revisions
- Root C3 folder contains
StartWebController.cmd
andRestartWebController.cmd
scripts for fast launching of the WebController. The second one clears Controller's database before running it. - Run from sources: (This will use
appsettings.Development.json
)
cd Src/WebController/Backend
dotnet run [-c Release]
- Run in Debug mode: (This will use
appsettings.Development.json
)
cd Src/WebController/Backend
dotnet run -c Debug
- Run on custom (multiple) addresses and use https:
dotnet run --urls="http://192.168.183.1:8080;https://192.168.183.1:8443"
- Compile:
cd Src/WebController/Backend
dotnet publish -c Release
- Run compiled (in publish folder): (This will use
appsettings.json
)
cd Bin/WebController/Release/netcoreapp2.2/publish
# edit appsettings.json - point Customizer.payloadTemplateDir to a directory with Gateway and Node Relay binaries. E.g.: "../../../..".
dotnet C3WebController.dll --urls="http://192.168.183.1:8080;https://192.168.183.1:8443"
Warning : After restarting the WebController with RestartWebController.cmd
or deleting the C3API.db
file only new gateways (started without their GatewaySnapshot.json
database files) can be connected to the WebController. Otherwise WebController will not register such Gateways and start periodically log errors.