Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 978 Bytes

devcontainer.md

File metadata and controls

34 lines (22 loc) · 978 Bytes

Setup VS Code devcontainers

Reopen in VS Code devcontainer, enter the frappe container.

For non VS Code development start containers with:

docker compose -p custom_bench -f .devcontainer/compose.yml up -d

Enter development container with:

docker compose -p custom_bench exec -e "TERM=xterm-256color" -it frappe bash

Once in frappe container execute:

./setup.sh
cd frappe-bench
bench start

Open: http://custom.localhost:8000

If not using VS Code open development or development/frappe-bench directory from this repo in your editor.

Note: Add list of sites to frappe container's extra_hosts in .devcontainer/compose.yml for sites from same container to communicate with each other by using site name.

Changes for private apps

  • Use ssh uri instead of https for app repo on apps.json
  • Setup ssh keys for git access on host machine. compose.yml mounts ${HOME}/.ssh in container at /home/frappe/.ssh.