This is a test project to do debug of django-websocket-redis.
There are 3 possibilities to run this project
- With python manage.py & a celery worker (just like the regular django project)
- With 2 wsgi applications servers & a celery worker (one application server for the http requests and one application server websocket messages)
- With load balancer server (pending ......)
You can run this project with manage.py and behind a wsgi app server
cd
cd project_websocket/project_websocket/
source ../env_project_websocket/bin/activate
celery worker -A project_websocket --loglevel=INFO --queue=celery_websocket -n="ws_1@worker"
cd
cd project_websocket/project_websocket/
source ../env_project_websocket/bin/activate
python manage.py runserver
cd
cd project_websocket/project_websocket/
source ../env_project_websocket/bin/activate
celery worker -A project_websocket --loglevel=INFO --queue=celery_websocket -n="ws_1@worker"
cd
cd project_websocket/project_websocket/
source ../env_project_websocket/bin/activate
uwsgi --ini app_uwsgi.ini
cd
cd project_websocket/project_websocket/
source ../env_project_websocket/bin/activate
uwsgi --ini app_websocket.ini
echo "" > /home/ubuntu/project_websocket/project_websocket/.logs/uwsgi/ws4redis1.log
sudo tail -f /home/ubuntu/project_websocket/project_websocket/.logs/uwsgi/ws4redis1.log
see documentation here