>> Deploy

Use Windows Service to host FlowCore 2.0 on Windows 10,11

Important
FlowCore 2.0 includes the .NET cross-platform Kestrel web server.
On Windows 10, Windows 11, you can use <Windows Service> to host.
You shouldn't use IIS on Windows 10,11 (can't be used in production environments).

(1) Install .NET SDK 6.0
Microsoft official website: Download .NET SDK 6.0
Select Windows - <Arm64 | x64 | x86> based on your CPU architecture, download and install.


(2) Test FlowCore 2.0 console self-hosting
2.1 Open the FlowCore 2.0 deployment path <runroot>.


2.2 Run runroot/FlowCore using the Windows command line.exe Start console self-hosting.
FlowCore 2.0 binds host port http://localhost:5000 by default.


2.3 Access http://localhost:5000 using a browser. Login screenshot

(3) Configure the Kestrel web server to bind localhost
runrootappsettings.json is the ASP.NET Core 6.0 runtime configuration file.
The Kestrel web server has a default binding http://localhost:5000.
"Kestrel": {
    "Endpoints": {
      "Http": {
        "Url": "http://localhost:5000"
      }
    }
  }

(4) Register Windows service
The following registers <runroot\FlowCore .exe> as a Windows service.
Important: Please modify the <physical path> in the following command to the physical path of your actual deployment.
Windows command prompt
sc.exe create FlowCore binpath=D:\FlowCoreApproot\runroot\FlowCore.exe
Use <Windows Service Manager> set <FlowCore> service to start automatically.



© 2023 PaiCore LLC. or its affiliates. All rights reserved.