@@ -31,14 +31,9 @@ create_user() {
31
31
# PRE: pkgs:
32
32
33
33
# dependencies: se for deb pkg, tirar
34
- <<< <<< < HEAD
35
- apt-get install git git-annex nginx supervisor python-pip rabbitmq-server
36
- =======
37
- apt-get install git git-annex nginx supervisor python-pip libjpeg-dev libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk python-dev python-setuptools
34
+ apt-get install git git-annex nginx supervisor python-pip rabbitmq-server libjpeg-dev libtiff4-dev libjpeg8-dev zlib1g-dev libfreetype6-dev liblcms2-dev libwebp-dev tcl8.5-dev tk8.5-dev python-tk python-dev python-setuptools
38
35
39
36
40
- >>>>>>> master
41
-
42
37
# ## cria diretorio basico
43
38
mkdir -p $DEFAULT_REPOSITORY_DIR
44
39
@@ -251,19 +246,7 @@ su - $USER_BBX -c "
251
246
virtualenv $INSTALL_DIR /envs/bbx ;
252
247
. $INSTALL_DIR /envs/bbx/bin/activate ;
253
248
pip install --upgrade setuptools ;
254
- <<<<<<< HEAD
255
249
cd $INSTALL_DIR ;
256
- tar xjvf pip_wheel_20140606.tbz ;
257
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/argparse-1.2.1-py2-none-any.whl;
258
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/Django-1.6.5-py2.py3-none-any.whl;
259
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/django_extensions-1.1.1-py2-none-any.whl;
260
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/djangorestframework-2.3.6-py2-none-any.whl;
261
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/gunicorn-18.0-py2-none-any.whl;
262
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/six-1.3.0-py2-none-any.whl;
263
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/sorl_thumbnail-11.12.1b-py27-none-any.whl;
264
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/South-0.8.4-py2.py3-none-any.whl;
265
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/wheel-0.23.0-py2.py3-none-any.whl;
266
- # pip install --use-wheel --no-index --find-links=local/wheel local/wheel/wsgiref-0.1.2-py2-none-any.whl;
267
250
pip install argparse;
268
251
pip install django==1.6.7;
269
252
pip install django-extensions;
@@ -274,21 +257,8 @@ pip install sorl-thumbnail;
274
257
pip install south;
275
258
pip install wheel;
276
259
pip install wsgiref;
277
- pip install longerusername
278
- =======
279
- pip install Django==1.6.6 ;
280
- pip install Pillow==2.6.1 ;
281
- pip install South==1.0 ;
282
- pip install argparse==1.2.1 ;
283
- pip install django-extensions==1.3.11 ;
284
- pip install djangorestframework==2.3.14 ;
285
- pip install gunicorn==19.1.1 ;
286
- pip install longerusername==0.4 ;
287
- pip install six==1.7.3 ;
288
- pip install sorl-thumbnail==11.12 ;
289
- pip install wheel==0.24.0 ;
290
- pip install wsgiref==0.1.2 ;
291
- >>>>>>> master
260
+ pip install longerusername;
261
+ pip install celery
292
262
"
293
263
294
264
echo " "
@@ -349,22 +319,29 @@ echo "Ativando NGINX ..."
349
319
service nginx restart
350
320
351
321
echo " "
352
- echo " Criando arquivo de configuração do Supervisor ..."
322
+ echo " Criando arquivo de configuração do Supervisor para BBX ..."
353
323
cp $INSTALL_DIR /baobaxia/conf/supervisor/bbx /etc/supervisor/conf.d/bbx.conf
354
324
sed -i " s:_domain_:${BBX_DIR_NAME} :g" /etc/supervisor/conf.d/bbx.conf
355
325
326
+ echo " "
327
+ echo " Criando arquivo de configuração do Supervisor para Celery..."
328
+ cp $INSTALL_DIR /baobaxia/conf/supervisor/celeryd /etc/supervisor/conf.d/celeryd.conf
329
+
356
330
echo " "
357
331
echo " Ativando o Baobáxia ..."
358
332
supervisorctl reload
359
333
supervisorctl restart bbx
334
+ supervisorctl restart celeryd
360
335
361
- # echo ""
362
- # echo "Ativando a sincronização (bbx-cron) ..."
363
- # cp $INSTALL_DIR/baobaxia/bin/bbx-cron.sh.example $INSTALL_DIR/bin/bbx-cron.sh
364
- # chmod +x $INSTALL_DIR/bin/bbx-cron.sh
365
- # touch /etc/cron.d/bbx
366
- # printf "# Sincronização do Baobáxia \n" >> /etc/cron.d/bbx
367
- # printf "*/30 * * * * * exu bash /srv/bbx/bin/bbx-cron.sh \n" >> /etc/cron.d/bbx
336
+ echo " "
337
+ echo " Instalando script de sincronização (bbx-cron) ..."
338
+ cp $INSTALL_DIR /baobaxia/bin/bbx-cron.sh.example $INSTALL_DIR /bin/bbx-cron.sh
339
+ chmod +x $INSTALL_DIR /bin/bbx-cron.sh
340
+
341
+ echo " "
342
+ echo " Instalando script para pedidos de arquivos (process-requests) ..."
343
+ cp $INSTALL_DIR /baobaxia/bin/process-requests.sh.example $INSTALL_DIR /bin/process-requests.sh
344
+ chmod +x $INSTALL_DIR /bin/process-requests.sh
368
345
369
346
echo " ..."
370
347
echo " Instalação completa!"
0 commit comments