update ini files to run asyncio process as a daemon
This commit is contained in:
parent
9ec34de4fc
commit
db877f0c2e
3 changed files with 6 additions and 4 deletions
3
setup.py
3
setup.py
|
@ -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',
|
||||||
])
|
])
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue