(Updated 2024-11-24)
Recently, I need to configure multiple ERPNext “sites” for my class (one student per site) and I would like to share what I have researched. I have Ubuntu 24.04.1 installed on a virutal machine where I configured each site to have a unquie port number (nginx) and then I used CloudFlare tunnels to create subdomains that points to these assigned ports.
Some notes:
- This guide is meant to serve as a case-study resource for those who are figuring out how to install ERPNext on their own environment. The steps in this guide is probably not going to work exactly in your case.
- I tried (my best) to avoid using OS python environment so I create a virtuan environment using
uv
tool. (my new favorite package manager ) I guess you can use a more conventional way (venv
) to create a virtual environment. - One thing I am not sure if I do this correctly is that I have to
sudo -i
tobench setup production ...
. However, the root user does not have the right python environment so I have toactivate
the virtual environment from the user’s folder. I feel that this is not the most elegant way to do it and suggestions from Linux guru is welcomed.