-
Notifications
You must be signed in to change notification settings - Fork 2
Setting up the server
Nishan Subedi edited this page May 22, 2015
·
7 revisions
- Setup reference
- To run app under uwsgi:
nishan@ImaginedBox ~ $ uwsgi --socket 127.0.0.1:9090 --wsgi-file uwsgi.py --chdir /home/kaha/kahadata/ --callable app --process 4 --threads 2 --stats /tmp/stats.socket --daemonize /var/log/uwsgi.log -H /home/kaha/kahadata/pyenv
- This creates a stats socket under /tmp/stats.socket
- This is then served on port 80 via nginx
- uwsgi.py file is not in the git repo since it contains config variables.
- These variables should be passed via nginx config, or pulled in via the app's config instead.
- Still need to make restarts graceful
- Set uwsgi config via ini file
- And then dockerize everything
- Look into implementing graceful restart.