>> Deploy

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



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.

Download the latest version of FlowCore 2.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 </FlowCoreApproot/fonts> folder to the </usr/share/fonts/truetype>
Linux commands
sudo cp -rf /FlowCoreApproot/fonts/* /usr/share/fonts/truetype

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 2.0 directory structure.
Run the chmod command to set file system permissions.
Linux commands
sudo chmod -R 444 /FlowCoreApproot/fonts
sudo chmod -R 666 /FlowCoreApproot/license
sudo chmod -R 555 /FlowCoreApproot/runroot
sudo chmod -R 666 /FlowCoreApproot/storagePath
sudo chmod -R 666 /FlowCoreApproot/temp
sudo chmod 444 /FlowCoreApproot/certarchive.json
sudo chmod 444 /FlowCoreApproot/cloudstorage.json
sudo chmod 444 /FlowCoreApproot/database.json

FlowCore 2.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.
{
  "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"
  }
}

Using Systemd on Linux host FlowCore 2.0
Use Nginx to host FlowCore 2.0 on Linux
Use Apache to host FlowCore 2.0 on Linux



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