From 46713d91babfb4af24a536a6b23748873960a55f Mon Sep 17 00:00:00 2001 From: Davide Bortolami Date: Tue, 10 Mar 2020 13:58:06 +0000 Subject: [PATCH] Add section pointing to documentation on how to enable developer mode --- development/README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/development/README.md b/development/README.md index 7a9e80b1..2f08d3d1 100644 --- a/development/README.md +++ b/development/README.md @@ -65,13 +65,13 @@ bench set-redis-socketio-host redis-socketio:6379 Honcho is the tool used by Bench to manage all the processes Frappe requires. Usually, these all run in localhost, but in this case, we have external containers for Redis. For this reason, we have to stop Honcho from trying to start Redis processes. -Open the Procfile file and remove the three lines containing the configuration from Redis, either by editing manually the file. +Open the Procfile file and remove the three lines containing the configuration from Redis, either by editing manually the file: ```shell code Procfile ``` -or running the following command: +Or running the following command: ```shell sed -i '/redis/d' ./Procfile ``` @@ -94,6 +94,15 @@ The command will ask the MariaDB root password. The default root password is `12 This will create a new site and a `localhost` directory under `frappe-bench/sites`. Your website will now be accessible on [localhost on port 8000](http://locahost:8000) +### Set bench developer mode on the new site + +To develop a new app, the last step will be setting the site into developer mode. Documentation is available at [this link](https://frappe.io/docs/user/en/guides/app-development/how-enable-developer-mode-in-frappe). + +```shell +bench set-config developer_mode 1 +bench clear-cache +``` + ### Fixing MariaDB issues after rebuilding the container The `bench new-site` command creates a user in MariaDB with container IP as host, for this reason after rebuilding the container there is a chance that you will not be able to access MariaDB correctly with the previous configuration