Frappe nuageuse destiny 2

Comment

Author: Admin | 2025-04-28

Exceed Ubuntu’s file watch limit, which by default is set to 8192. To avoid this issue set a higher limit using the following command:echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -pThe tee command will append the contents of your echo command to the called file while also printing the output to your console.Next, initialize Frappe Framework 12. Replace Sammy with your system username:bench init /home/sammy/frappe-bench --frappe-path https://github.com/frappe/frappe --frappe-branch version-12 --python python3During execution you may see one error about your path, along with several warnings. Let the process continue until the end. Once it’s finished, you will see an output similar to the following one, indicating that your environment was successfully created:Output...Done in 82.23s.INFO:bench.utils:setting up backupsno crontab for sammySUCCESS: Bench /home/sammy/frappe-bench initializedNote: The bench init process could halt if a spawn ENOMEM error is encountered. This error is caused when your system runs out of memory. You must fix the issue before continuing, either by installing more physical memory or allocating SWAP space.Let’s take a closer look at the command used to create the environment:/home/sammy/frappe-bench is the path where the Frappe Framework, the websites, and associated applications will be installed. A new directory, called frappe-bench in this example, will be created to accommodate all necessary files.--frappe-path points to Frappe repository, which in this case is the official Github repository.--frappe-branch is the Frappe version to be installed. Because you want to install ERPNext 12, the chosen version is Frappe 12.--python is the Python version that will be used. ERPNext 12 requires Python 3.6+. Prior versions, however, still use Python 2.7.For more information regarding bench CLI commands please refer to the Bench Commands Cheatsheet.The flexibility offered by the Frappe framework goes way beyond using isolated environments. You can also create different websites and install applications into them.Step 7 — Installing the ERPNext 12 Web ApplicationIn this section, you will set up a Frappe-based site and then install the ERPNext 12 application on it.Change to the directory where Frappe was initialized.cd /home/sammy/frappe-benchBefore continuing, you will need to install specific versions of Python libraries numpy and pandas into the Frappe virtual environment. Install these packages using the following command:./env/bin/pip install numpy==1.18.5 && ./env/bin/pip install pandas==0.24.2At this point the installation might halt for about 10 to 20 minutes while displaying this message:Output...Building wheel for pandas (setup.py) ... -This has to do with a bug related to pandas and Ubuntu 20.04, which, at the time of writing, is still rather new. Nevertheless the packages will build, and once they complete you will see an output like this:Output...Successfully built pandasInstalling collected packages: pandasSuccessfully installed pandas-0.24.2Now, you can continue with the installation. Download ERPNext 12 from its repository using the bench CLI:bench get-app erpnext https://github.com/frappe/erpnext --branch

Add Comment