「ERPNext」の版間の差分

提供: ArchWiki
ナビゲーションに移動 検索に移動
(一部翻訳)
17行目: 17行目:
 
}}
 
}}
   
=== Dependencies ===
+
=== 依存関係 ===
   
  +
インストーラーは、Python の仮想環境を使用します。したがって、システム全体で Python の依存関係は必要ありません。
The installer uses a virtual environment for Python. Therefore, Python dependencies are not required system-wide.
 
   
 
=== Bug (Access to database denied) ===
 
=== Bug (Access to database denied) ===

2023年3月12日 (日) 05:28時点における版

ERPNext は、GPL3 のライセンスを受けたオープンソースの ERP ソフトウェアで、Web ブラウザからアクセスすることができます。機能は論理的なセクションに分かれており、必要な機能のみを選択することができます。これにより、さまざまなユースケースが可能になります。

たくさんの ドキュメント があります。さらに、フォーラム は、ユーザー間の議論のための集まりの場として機能しています。

代替ソフトの Odoo とは対照的に、完全にオープンソースであり、プロプライエタリなバージョンは存在しません。

インストール

erpnextAUR パッケージを インストール します。内部的には、独自のインストーラ frappe-benchAUR を使用しています。

NginxApache などの HTTP サーバーを使用して、リバースプロキシの背後で ERPNext を実行することができます。

ノート:

git 設定が変更される可能性があります。セクション [safe] が追加されます。安心して取り外せます。

依存関係

インストーラーは、Python の仮想環境を使用します。したがって、システム全体で Python の依存関係は必要ありません。

Bug (Access to database denied)

During the setup, a database needs to be created. This happens with the own user. For the database creation, the user "root" is needed. By default, it has set an empty password but is accessed via the user "root". As this is not possible in the installation, the user "root" needs to be set a password.

Update

Updating requires manual action because the installation will fail if the software's database named "erpnext" already exists.

Save your database and delete it.

# mariadb-dump -p -u root erpnext > /tmp/erpnext.sql
# mariadb -e "DROP DATABASE erpnext;" -p -u root

Save your files.

# cp -r /usr/share/webapps/erpnext/sites/erpnext/private/ /tmp/erpnext-private/
# cp -r /usr/share/webapps/erpnext/sites/erpnext/public/ /tmp/erpnext-public/

Uninstall erpnextAUR and remove its lingering files.

# rm -r /usr/share/webapps/erpnext/

Afterwards, install the package erpnextAUR.

Now, restore your old database and files and remove the backups.

# mariadb -e "DROP DATABASE erpnext;" -p -u root
# mariadb -e "CREATE DATABASE erpnext;" -p -u root
# mariadb -p -u root erpnext < /tmp/erpnext.sql
# cp -r /tmp/erpnext-private/* /usr/share/webapps/erpnext/sites/erpnext/private/
# cp -r /tmp/erpnext-public/* /usr/share/webapps/erpnext/sites/erpnext/public/
# rm /tmp/erpnext.sql
# rm -r /tmp/erpnext-private/
# rm -r /tmp/erpnext-public/

Upgrade the database.

# tmux new-session -s erpnext "erpnext"
# cd /usr/share/webapps/erpnext/
# sudo -u erpnext bash -c "bench migrate"
# tmux send-keys -t erpnext C-c

Ultimately, assure the correct ownership.

 # chown -R erpnext:erpnext /usr/share/webapps/erpnext/

Removal

As the software creates files on its own pacman cannot keep track of all files. For a complete removal, run:

# rm -r /usr/share/webapps/erpnext/

Backup

Create a backup of the database, see MariaDB#Backup. Additionally, save your files which are located in /usr/share/webapps/erpnext/sites/erpnext/private/ and /usr/share/webapps/erpnext/sites/erpnext/public/.

Usage

Start the executable erpnext. The root password is required to access the user "erpnext". The server runs and can be accessed via http://localhost:8000.