diff options
| -rw-r--r-- | example_project/settings.py | 5 | ||||
| -rwxr-xr-x | install/ishtar-prepare-instance | 2 | 
2 files changed, 5 insertions, 2 deletions
diff --git a/example_project/settings.py b/example_project/settings.py index a3c5318db..c479d1bae 100644 --- a/example_project/settings.py +++ b/example_project/settings.py @@ -278,6 +278,8 @@ DOT_BINARY = ""  TEST_RUNNER = 'ishtar_common.tests.ManagedModelTestRunner' +CELERY_BROKER_URL = '' +  try:      from local_settings import *  except ImportError as e: @@ -325,7 +327,8 @@ if DEBUG:              LOGGING['loggers'][logger]['handlers'] += ['console']  if USE_BACKGROUND_TASK: -    CELERY_BROKER_URL = 'amqp://localhost' +    if not CELERY_BROKER_URL: +        CELERY_BROKER_URL = 'amqp://localhost'  if DJANGO_EXTENSIONS:      INSTALLED_APPS.append('django_extensions') diff --git a/install/ishtar-prepare-instance b/install/ishtar-prepare-instance index 8676a4c80..bd235d5a2 100755 --- a/install/ishtar-prepare-instance +++ b/install/ishtar-prepare-instance @@ -268,7 +268,7 @@ EOF          /usr/sbin/rabbitmqctl add_vhost /ishtar$INSTANCE          /usr/sbin/rabbitmqctl add_user ishtar$INSTANCE $RBMQ_PASSWORD          /usr/sbin/rabbitmqctl set_permissions -p /ishtar$INSTANCE ishtar$INSTANCE ".*" ".*" ".*" -        CELERY_CONF="BROKER_URL = 'ampq://ishtar"$INSTANCE":"$RBMQ_PASSWORD"@localhost//ishtar"$INSTANCE"'" +        CELERY_CONF="CELERY_BROKER_URL = 'amqp://ishtar"$INSTANCE":"$RBMQ_PASSWORD"@localhost//ishtar"$INSTANCE"'"          sed -s "s|#APP_NAME#|$INSTANCE|g;" \              "install/celeryd.default.template" > \              "/etc/default/celeryd-"$INSTANCE  | 
