Skip to content

Instantly share code, notes, and snippets.

@mhermans
Created June 25, 2011 08:33
Show Gist options
  • Save mhermans/1046292 to your computer and use it in GitHub Desktop.
Save mhermans/1046292 to your computer and use it in GitHub Desktop.
Setup MongoDB + RabbitMQ + Gabriel
sudo apt-get -y install rabbitmq-server python-virtualenv virtualenvwrapper git mongodb libxslt-dev libxml2-dev python-dev tmux
git clone dvoets@mhermans.webfactional.com:/home/mhermans/webapps/git/repos/gabriel.git
source $HOME/.bashr
mkdir $HOME/.virtualenvs
mkvirtualenv gabrielenv
workon gabrielenv
pip install -r gabriel/requirements.txt
sudo rabbitmqctl add_user gabriel gabriel
sudo rabbitmqctl add_vhost gabrielvhost
sudo rabbitmqctl set_permissions -p gabrielvhost gabriel ".*" ".*" ".*"
cd gabriel/gabriel
celeryd -c 10
[andere terminal]
workon gabrielenv
cd gabriel/tests
python parse.py ../data/citationtestdata/Pres.xml
python async.py ../data/citationtestdata/Pres.xml
python ../gabriel/rapport.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment