mirror of
https://github.com/frappe/frappe_docker.git
synced 2026-06-17 21:55:09 +00:00
added devmode beta
This commit is contained in:
parent
7a33d59e73
commit
e421a9a23c
2 changed files with 7 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ install:
|
|||
- docker-compose build
|
||||
- mkdir -p ~/docker; docker save frappedocker_frappe > ~/docker/image.tar
|
||||
- docker-compose up -d
|
||||
- ./dbench init
|
||||
- ./dbench init -d
|
||||
- pip install --upgrade virtualenv
|
||||
- virtualenv -p python3 testenv
|
||||
- source testenv/bin/activate
|
||||
|
|
|
|||
6
dbench
6
dbench
|
|
@ -9,6 +9,7 @@ display_usage () {
|
|||
echo ' -s adds site-names to /etc/hosts file in the container to facilitate multisite access'
|
||||
echo ' init initializes frappe-bench'
|
||||
echo ' init -e initializes frappe-bench and installs erpnext'
|
||||
echo ' init -d initializes frappe-bench and enables developer mode'
|
||||
}
|
||||
|
||||
frappe_installer () {
|
||||
|
|
@ -36,6 +37,11 @@ then
|
|||
docker exec -it frappe bash -c "bench --site site1.local install-app erpnext"
|
||||
echo "finished"
|
||||
|
||||
elif [[ $1 == 'init' && $2 == 'd' ]]
|
||||
then
|
||||
frappe_installer
|
||||
cat frappe-bench/sites/site1/site_config.json
|
||||
|
||||
elif [ $1 == 'init' ]
|
||||
then
|
||||
frappe_installer
|
||||
|
|
|
|||
Loading…
Reference in a new issue