added devmode beta

This commit is contained in:
chabad360 2018-08-01 15:51:14 -07:00
parent 7a33d59e73
commit e421a9a23c
2 changed files with 7 additions and 1 deletions

View file

@ -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
View file

@ -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