Commit 3477338827b11a8c137ef580d621a7f4cf564e46

Authored by Sergio Oliveira
1 parent 64781e7e

Moved from rabbitmq to redis

Signed-off-by: Sergio Oliveira <sergio@tracy.com.br>
colab/settings.py
@@ -8,7 +8,8 @@ For the full list of settings and their values, see @@ -8,7 +8,8 @@ For the full list of settings and their values, see
8 https://docs.djangoproject.com/en/1.7/ref/settings/ 8 https://docs.djangoproject.com/en/1.7/ref/settings/
9 """ 9 """
10 10
11 -BROKER_URL = 'amqp://guest:guest@localhost:5672/' 11 +BROKER_URL = 'redis://localhost:6379/0'
  12 +CELERY_RESULT_BACKEND = 'redis://localhost:6379/0'
12 13
13 # Build paths inside the project like this: os.path.join(BASE_DIR, ...) 14 # Build paths inside the project like this: os.path.join(BASE_DIR, ...)
14 import os 15 import os
@@ -16,7 +16,7 @@ REQUIREMENTS = [ @@ -16,7 +16,7 @@ REQUIREMENTS = [
16 'diazo>=1.0.5', 16 'diazo>=1.0.5',
17 17
18 # Async Signals 18 # Async Signals
19 - 'celery>=3.1', 19 + 'celery[redis]>=3.1',
20 20
21 ### Move out of colab (as plugins): 21 ### Move out of colab (as plugins):
22 22
vagrant/centos.sh
@@ -22,9 +22,9 @@ yum install -y epel-release @@ -22,9 +22,9 @@ yum install -y epel-release
22 22
23 yum -y groupinstall "Development tools" 23 yum -y groupinstall "Development tools"
24 24
25 -yum install -y git unzip gettext libxml2-devel libxslt-devel openssl-devel libffi-devel python-devel python-pip python-virtualenvwrapper rabbitmq-server 25 +yum install -y git unzip gettext libxml2-devel libxslt-devel openssl-devel libffi-devel python-devel python-pip python-virtualenvwrapper redis-server
26 26
27 27
28 ### Init Rabbitmq 28 ### Init Rabbitmq
29 -chkconfig rabbitmq-server on  
30 -systemctl start rabbitmq-server 29 +chkconfig redis-server on
  30 +systemctl start redis-server
vagrant/ubuntu.sh
@@ -5,4 +5,4 @@ set -ex @@ -5,4 +5,4 @@ set -ex
5 ### Install dependencies 5 ### Install dependencies
6 apt-get update 6 apt-get update
7 7
8 -apt-get install curl git unzip build-essential gettext libxml2-dev libxslt1-dev libssl-dev libffi-dev python-dev virtualenvwrapper python-pip rabbitmq-server -y 8 +apt-get install curl git unzip build-essential gettext libxml2-dev libxslt1-dev libssl-dev libffi-dev python-dev virtualenvwrapper python-pip redis-server -y