From 4fdcea8acdcf319a4ede6f5941b36d6d697b4aaa Mon Sep 17 00:00:00 2001 From: dpedu Date: Thu, 25 Jun 2015 10:29:21 -0700 Subject: [PATCH] Auto-create environment --- watch-obt.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/watch-obt.sh b/watch-obt.sh index 04810f7..a9ebc9f 100755 --- a/watch-obt.sh +++ b/watch-obt.sh @@ -1,5 +1,13 @@ #!/bin/sh -#source testenv/bin/activate + +if [ ! -d testenv ] ; then + virtualenv --python=python3.4 testenv + source testenv/bin/activate + pip3 install -r requirements.txt + deactivate +fi + +source testenv/bin/activate ./watch.py ~/PhpstormProjects/pronq/obt_prototypes/ -u root -p vagrant -s localdev.saas.hp.com \ --map "server/cms:/var/www/drupal" \ --map "shared-assets:/var/www/drupal/sites/all/themes/zen_pronq_mktg/shared-assets" \