3 files changed, 24 insertions(+), 0 deletions(-)

A => celery.sh
A => ublog.screenrc
A => ublog.sh
A => celery.sh +9 -0
@@ 0,0 1,9 @@ 
+#!/bin/bash
+
+source ~/Env/ublog/bin/activate
+
+export MICROBLOGPUB_AMQP_BROKER=pyamqp://ublog:ublog@127.0.0.1/ublog
+export MICROBLOGPUB_MONGODB_HOST=127.0.0.1:27017
+
+celery worker -l info -A tasks
+

          
A => ublog.screenrc +5 -0
@@ 0,0 1,5 @@ 
+sessionname ublog
+chdir /home/cwt/Projects/microblog.pub
+screen -t ublog 0 ./ublog.sh
+screen -t celery 1 ./celery.sh
+

          
A => ublog.sh +10 -0
@@ 0,0 1,10 @@ 
+#!/bin/bash
+
+source ~/Env/ublog/bin/activate
+
+export MICROBLOGPUB_AMQP_BROKER=pyamqp://ublog:ublog@127.0.0.1/ublog
+export MICROBLOGPUB_MONGODB_HOST=127.0.0.1:27017
+
+python -O -c "import config; config.create_indexes()"
+gunicorn -t 300 -w 2 -k gevent -b 0.0.0.0:5005 --log-level info app:app
+