update ini files to run asyncio process as a daemon

This commit is contained in:
Kyle Mahan 2015-03-15 10:52:15 -07:00
parent 9ec34de4fc
commit db877f0c2e
3 changed files with 6 additions and 4 deletions

View file

@ -14,6 +14,7 @@ setup(name='Woodwind',
'Flask-Login', 'Flask-Login',
'Flask-Micropub', 'Flask-Micropub',
'Flask-SQLAlchemy', 'Flask-SQLAlchemy',
'asyncio_redis',
'beautifulsoup4', 'beautifulsoup4',
'bleach', 'bleach',
'feedparser', 'feedparser',
@ -23,6 +24,6 @@ setup(name='Woodwind',
'redis', 'redis',
'requests', 'requests',
'rq', 'rq',
'tornado',
'uwsgi', 'uwsgi',
'websockets',
]) ])

View file

@ -1,8 +1,8 @@
[uwsgi] [uwsgi]
master=true master=true
processes=1 processes=1
threads=1
http=:4000 http=:4000
module=woodwind.wsgi module=woodwind.wsgi
import=timers
attach-daemon=rqworker attach-daemon=rqworker
import=woodwind.tasks attach-daemon=python -m woodwind.websocket_server

View file

@ -6,4 +6,5 @@ socket=/tmp/woodwind.sock
chmod-socket=666 chmod-socket=666
module=woodwind.wsgi module=woodwind.wsgi
import=timers import=timers
attach-daemon=venv/bin/rqworker attach-daemon=rqworker
attach-daemon=python -m woodwind.websocket_server