Will this work as per their documentation on shared / VPS servers ?
https://frappeframework.com/docs/user/en/installation
They explicitly require my.cnf edits and node 14 and yarn and bench.
Bench for Frappe / ERPNext
anjanesh I think it should work but you'll need to install and configure a lot of pre-requisites yourself:
- You'll need to run your own MariaDB.
- You'll need to install your own NodeJS:
mkdir -p ~/opt/src cd ~/opt/src wget https://nodejs.org/download/release/v14.18.1/node-v14.18.1-linux-x64.tar.xz cd ~/opt tar xf src/node-v14.18.1-linux-x64.tar.xz --strip 1 export PATH=$HOME/opt/bin:$PATH
- You'll need to install Redis v6:
mkdir -p ~/opt/src cd ~/opt/src wget https://download.redis.io/releases/redis-6.2.6.tar.gz tar xf redis-6.2.6.tar.gz cd redis-6.2.6 make find $PWD/src -type f -executable -name "redis-*" | xargs -I _ mv _ ~/opt/bin/ export PATH=$HOME/opt/bin:$PATH
- You'll need to install wkhtmltopdf:
mkdir -p ~/opt/src cd ~/opt/src wget wkhtmltox-0.12.6-1.centos7.x86_64.rpm rpm2cpio wkhtmltox-0.12.6-1.centos7.x86_64.rpm | cpio -idmv cd usr/local mv bin/* ~/opt/bin/ mv {lib,include} ~/opt/ export LD_LIBRARY_PATH=$HOME/opt/lib:$LD_LIBRARY_PATH export PATH=$HOME/opt/bin:$PATH
Once all of that is done you should be able to install bench via pip and go from there.
a year later
What would be the application type ? Python/uWsgi ?
- Edited
anjanesh According to https://frappeframework.com/docs/v14/user/en/tutorial/install-and-setup-bench it runs its own bundled web server (gunicorn) via the bench
command.
I'm assuming the bench
command has some sort of configuration option to assign its port, so you can use a proxy port app to get a port assignment and then configure bench
to listen on that port.