]> git.parisson.com Git - telemeta.git/commitdiff
add haystack modules, update_index
authorGuillaume Pellerin <yomguy@parisson.com>
Tue, 7 Apr 2015 14:31:24 +0000 (16:31 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Tue, 7 Apr 2015 14:31:24 +0000 (16:31 +0200)
examples/deploy/celery_app.sh
examples/deploy/start_app.sh
setup.py

index 856d3eb43f31908c8415eba8e12be6394e3a4f24..ac08e3c318ac6ef9f4899301073a00bbad07878c 100644 (file)
@@ -6,6 +6,10 @@ sandbox='/home/sandbox'
 manage=$sandbox'/manage.py'
 wsgi=$sandbox'/wsgi.py'
 
+# stating apps
+pip install django-haystack elasticsearch
+
+# waiting for other services
 sh $app_dir/examples/deploy/wait.sh
 
 # Starting celery worker with the --autoreload option will enable the worker to watch for file system changes
index 601ba9545ef8f6bd7a82f2dff465b797d7a60c4a..47179f85ad1fc24e278e14d326de8d413ea95eb6 100644 (file)
@@ -7,6 +7,10 @@ sandbox='/home/sandbox'
 manage=$sandbox'/manage.py'
 wsgi=$sandbox'/wsgi.py'
 
+# stating apps
+pip install django-haystack elasticsearch
+
+# waiting for other services
 sh $app_dir/examples/deploy/wait.sh
 
 # django init
@@ -15,6 +19,7 @@ python $manage migrate --noinput
 python $manage collectstatic --noinput
 python $manage telemeta-create-admin-user
 python $manage telemeta-create-boilerplate
+python $manage update_index
 
 # static files auto update
 watchmedo shell-command --patterns="*.js;*.css" --recursive \
index 19c6f6c4e86aaa64b8ed04a963e8f58566f06495..d62ede84fbdebec59a46461701ad143bd16bb8b4 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -64,6 +64,7 @@ setup(
         'django-google-tools',
         'django-ipauth',
         'django-celery',
+        'django-haystack',
         'timeside>=0.7',
         'south',
         'sorl-thumbnail',
@@ -72,7 +73,7 @@ setup(
         'pyyaml',
         'python-ebml',
         'zipstream',
-        'django-haystack'
+        'elasticsearch',
     ],
   tests_require=['pytest-django', 'pytest-cov', 'factory-boy'],
   # Provide a test command through django-setuptest