From 8eb9e342f19bfbb7c3047811ee08471088039f89 Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Fri, 6 Dec 2013 14:42:43 +0100 Subject: Added install.sh for installation with virtualenv. --- install.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 install.sh diff --git a/install.sh b/install.sh new file mode 100755 index 00000000..77bdce40 --- /dev/null +++ b/install.sh @@ -0,0 +1,16 @@ +#!/bin/sh + +# Installation of MongoDB +if ! dpkg -s mongodb-server | grep -i 'status' | grep -i 'installed' > /dev/null ; then + sudo apt-get install -y mongodb-server + sudo service mongodb start +fi + +sudo apt-get install -y python-pip +pip install --user virtualenv +virtualenv --no-site-packages ./env_pyAggr3g470r +source ./env_pyAggr3g470r/bin/activate +pip install --upgrade -r requirements.txt +deactivate + +cp conf/conf.cfg-sample conf/conf.cfg -- cgit