FlowCore 2.0 - Deploy on Linux(system environment and prerequisites)
Important
FlowCore 2.0 built with .NET 6.0/ASP.NET Core 6.0.
FlowCore includes a .NET cross-platform Kestrel web server, which can be used alone or with a reverse proxy server.
The FlowCore application <runroot> folder contains the ASP.NET Core directory structure.
FlowCore is launched on Linux from the runroot/FlowCore.dll file.
This article demonstrates the use of Ubuntu 20.04 (LTS).
FlowCore 2.0 fully supports Linux distributions supported by ASP.NET Core 6.0.
Check out the list: ASP.NET Linux distributions supported by Core 6.0.
On Linux, three hosting options are recommended:
l Hosting ASP.NET Core with Systemd.
l Hosting ASP.NET Core with Nginx.
l Hosting ASP.NET Core with Apache
(1)Deploy the FlowCore program files
1.1 Download FlowCore 2.0 and unpack the installation package.
Linux commands
sudo unzip FlowCore-2.x.zip
Move the full FlowCoreApproot to the target deployment path, such as /FlowCoreApproot.
2.3 Create a < FlowCore > database structure.
The FlowCore package, under the database-sql-statements folder, contains SQL statements that create the database structure. 2.3.1 SQL Server Database.
Using SQL Server Query Analyzer: Executing SQL Statements <Microsoft-sqlserver.... sql>。
(1) System core data structure.
microsoft-sqlserver_core.sql
(2) Basic presentation workflow (process design and form templates).
microsoft-sqlserver_demo.sql
2.3.2 PostgreSQL database.
Using PostgreSQL - pgAdmin: Execute SQL statements <postgresql.... sql>。
(1) System core data structure.
postgresql_core.sql
(2) Basic presentation workflow (process design and form templates).
postgresql_demo.sql
(3) Configure SQL Server or PostgreSQL database connections.
Use <vim > edit <database.json> configure the database connection.
Use SQL Server databases: DatabaseType is set to an empty string < """> or < "SQLServer" >.
Use a PostgreSQL database: DatabaseType is < "PostgreSQL" >.
Configure the host name, user name, password, and other information of the connection database.
Important: In the JSON configuration file, use two <> to represent a <>.