2
0
mirror of https://github.com/frappe/frappe_docker.git synced 2024-11-13 00:36:26 +00:00

Fix inconsistencies in development readme

This commit is contained in:
Lev Vereshchagin 2021-12-17 12:51:08 +03:00
parent d496f328d5
commit 3b987cfae1

View File

@ -52,12 +52,12 @@ After the extensions are installed, you can:
- Open frappe_docker folder in VS Code. - Open frappe_docker folder in VS Code.
- `code .` - `code .`
- Launch the command, from Command Palette (Ctrl + Shift + P) `Execute Remote Containers : Reopen in Container`. You can also click in the bottom left corner to access the remote container menu. - Launch the command, from Command Palette (Ctrl + Shift + P) `Remote-Containers: Reopen in Container`. You can also click in the bottom left corner to access the remote container menu.
Notes: Notes:
- The `development` directory is ignored by git. It is mounted and available inside the container. Create all your benches (installations of bench, the tool that manages frappe) inside this directory. - The `development` directory is ignored by git. It is mounted and available inside the container. Create all your benches (installations of bench, the tool that manages frappe) inside this directory.
- nvm with node v12 and v10 is installed. Check with `nvm ls`. Node v12 is used by default. - Node v14 and v10 are installed. Check with `nvm ls`. Node v14 is used by default.
### Setup first bench ### Setup first bench
@ -68,7 +68,7 @@ bench init --skip-redis-config-generation --frappe-branch version-13 frappe-benc
cd frappe-bench cd frappe-bench
``` ```
Note: For version 12 use python 3.7 by passing option to `bench init` command, e.g. `bench init --skip-redis-config-generation --frappe-branch version-12 --python python3.7 frappe-bench` Note: For version 12 use Python 3.7 by passing option to `bench init` command, e.g. `bench init --skip-redis-config-generation --frappe-branch version-12 --python python3.7 frappe-bench`
### Setup hosts ### Setup hosts
@ -162,14 +162,14 @@ To install custom app
```shell ```shell
# --branch is optional, use it to point to branch on custom app repository # --branch is optional, use it to point to branch on custom app repository
bench get-app --branch version-12 myapp https://github.com/myusername/myapp.git bench get --branch version-12 https://github.com/myusername/myapp
bench --site mysite.localhost install-app myapp bench --site mysite.localhost install-app myapp
``` ```
To install ERPNext (from the version-12 branch): To install ERPNext (from the version-12 branch):
```shell ```shell
bench get-app --branch version-12 erpnext https://github.com/frappe/erpnext.git bench get --branch version-12 erpnext
bench --site mysite.localhost install-app erpnext bench --site mysite.localhost install-app erpnext
``` ```
@ -242,6 +242,7 @@ Replace `mysite.localhost` with your site and run the following code in a Jupyte
```python ```python
import frappe import frappe
frappe.init(site='mysite.localhost', sites_path='/workspace/development/frappe-bench/sites') frappe.init(site='mysite.localhost', sites_path='/workspace/development/frappe-bench/sites')
frappe.connect() frappe.connect()
frappe.local.lang = frappe.db.get_default('lang') frappe.local.lang = frappe.db.get_default('lang')