>> Deploy

FlowCore 3.0 - Deploy on Linux(system environment and prerequisites)


Important
FlowCore 3.0 built with .NET 8.0/ASP.NET Core 8.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 3.0 fully supports Linux distributions supported by ASP.NET Core 8.0.
Check out the list: ASP.NET Linux distributions supported by Core 6.0.

On Linux, three hosting options are recommended:
lHosting ASP.NET Core with Systemd.
lHosting ASP.NET Core with Nginx.
lHosting ASP.NET Core with Apache


(1)Deploy the FlowCore program files
1.1 Download FlowCore 3.0 and unpack the installation package.
Linux commands
sudo unzip FlowCore-3.x.zip
Move the full FlowCore-approot to the target deployment path, such as /flowcore.

Download the latest version of FlowCore 3.0
www.paicore.com/zh/flowcore/downloads

1.2 Install the fonts.
Install the font management tool
Linux commands
sudo apt-get install fontconfig

Copy all files in the </flowcore/fonts> folder to the </usr/share/fonts>
Linux commands
sudo cp -rf /flowcore/fonts/* /usr/share/fonts

Update the fonts
Linux commands
sudo fc-cache -f -v

View fonts
Linux commands
sudo fc-list

1.3 Install prerequisite dependencies
1.3.1 Install prerequisite dependencies
Linux commands
sudo apt-get update
sudo apt-get install xvfb

Linux commands
sudo apt-get update
sudo apt-get install libssl-dev

Linux commands
sudo apt-get update
sudo apt-get install libx11-dev libx11-xcb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-render-util0-dev libxcb-render0-dev libxcb-shm0-dev libxcb-util0-dev libxcb-xfixes0-dev libxcb-xkb-dev libxcb1-dev libxfixes-dev libxrandr-dev libxrender-dev

1.3.2 Install QtWebKit.
Linux commands
sudo apt-get update
sudo apt-get install -y libqt5webkit5

1.4 Set file system permissions for the FlowCore 3.0 directory structure.
Run the chmod command to set file system permissions.
Linux commands
sudo chmod -R 444 /flowcore/fonts
sudo chmod -R 666 /flowcore/license
sudo chmod -R 555 /flowcore/runroot
sudo chmod -R 666 /flowcore/storagePath
sudo chmod -R 666 /flowcore/temp
sudo chmod 444 /flowcore/certarchive.json
sudo chmod 444 /flowcore/cloudstorage.json
sudo chmod 444 /flowcore/database.json

FlowCore 3.0 File system permissions for the directory structure. Digital
Path File system permissions chmod permissions Purpose
/fonts Read 444 Font file
/license Read, Write 666 Store the license file
/runroot Read, execute 555 ASP.NET Core directory structure
/storagePath Read, Write 666 Storage path
/temp Read, Write 666 Temporary folder
/certarchive.json Read 444Archive (Digital Certificate Configuration).
/cloudstorage.json Read 444 Cloud storage configuration (Azure Blob and Amazon S3).
/database.json Read 444 Configure the database connection

(2)Install the database Microsoft SQL Server or PostgreSQL
2.1 Install a SQL Server or PostgreSQL database.
Installation guide for SQL Server on Linux
How to install PostgreSQL on Ubuntu 22.04


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 <>.
{
  "DatabaseType": "",
  "ConnectionStrings": {
    "SQLServer": "database=FlowCore;Data Source=localhost;User ID=sa;password=YourPassword;Connect Timeout=60",
    "PostgreSQL": "Database=FlowCore;Host=localhost;Username=postgres;Password=YourPassword"
  }
}




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