Installing ERPNext on macos with external DB instance (dev mode)

Октябрь 3, 2024 Время чтения: 17 минуты

This guide is based on the Installing Bench and the Frappe Framework.

I assume you have already installed xcode-select and homebrew.

In my case I need to fire

sudo xcodebuild -license accept

Don't forget

brew update && brew upgrade

Now, install the pre-requisites

brew install python@3.12 git redis

Install wkhtmltopdf

brew install --cask wkhtmltopdf

Download and install nodejs v18.20.4 from nodejs.org

Install yarn using npm

sudo npm install -g yarn

Install bench via pip3

pip install frappe-bench --break-system-packages

Verify the bench installation

bench --version                                
5.22.9

Now create a new folder, change to it und create your new bench

bench init <directory name>

Change to new folder and finally

bench new-site <address> --db-host <db-ip>

I like postgres

brew install libpq

brew link --force libpq

bench new-site <address> --db-host <db-ip> --db-type postgres --db-port <port>

And last but not least

bench get-app erpnext

bench --site >address> install-app erpnext

bench start

First, we need to complete the wizard and bam!

psycopg2.errors.SerializationFailure: could not serialize access due to concurrent update

Don't panic, it's easy - please comment out one line in database.py, as this option is incorrect


Very important shortcuts of macos

Сентябрь 17, 2024 Время чтения: ~1 минут
command-shift-control-4 screenshot
command-shift-option-v paste pur
command-control-q lock
command-shift-. show/hide hidden files/folders

about

It's a personal page // Это личная страница