Skip to content

Snippets to setup Frappe/ERPNext/Health on any system with single command

Notifications You must be signed in to change notification settings

ChillarAnand/one-click-erpnext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

One Click ERPNext

With Docker

Ensure Docker installed.

curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh
dockerd-rootless-setuptool.sh install

Install ERPNext on your Linux server with just a single command.

git clone https://github.com/chillarAnand/one-click-erpnext
cd one-click-erpnext && docker-compose up

Without Docker

export DEBIAN_FRONTEND=noninteractive

sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://ftp.ubuntu-tw.org/mirror/mariadb/repo/10.3/ubuntu xenial main'

sudo apt update -y

sudo apt-get install -y mariadb-server

sudo mysql_secure_installation

cat <<EOF > ~/.my.cnf
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4
EOF

sudo tee -a /etc/mysql/my.cnf > /dev/null <<EOF
[mysqld]
character-set-client-handshake = FALSE
character-set-server = utf8mb4
collation-server = utf8mb4_unicode_ci

[mysql]
default-character-set = utf8mb4
EOF

sudo systemctl restart mysql


sudo apt install -y redis-server


curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
source ~/.bashrc
nvm install 16
npm install -g yarn


sudo apt install -y python3-pip python3-venv python3-dev
sudo pip install frappe-bench

bench init default-bench
cd default-bench
bench new-site demo.localhost --admin-password admin --mariadb-root-password admin
bench get-app erpnext
bench --site demo.localhost install-app erpnext

Trouble shooting

MySQL reset password/conf

# check my.cnf file order

Force re-create bench

cd
rm -rf default-bench
bench init default-bench
cd default-bench
bench new-site demo.localhost --admin-password admin --mariadb-root-password admin --force
bench get-app erpnext
bench --site demo.localhost install-app erpnext

About

Snippets to setup Frappe/ERPNext/Health on any system with single command

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages