diff --git a/.travis.yml b/.travis.yml index 323370ea..b2c01dfd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/dbench b/dbench index 2933cc18..2d5622dd 100755 --- a/dbench +++ b/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