Created
February 9, 2017 04:46
-
-
Save myeonggyunhan/fe77ea739a37a90a63bf047c35d77c12 to your computer and use it in GitHub Desktop.
uWSGI template for Django project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [uwsgi] | |
| # Django project name | |
| project-name = ProjectName | |
| # Django project path | |
| project-home = /path/to/project/ProjectName | |
| # Base directory path | |
| chdir = %(project-home) | |
| # Django's wsgi file | |
| wsgi-file = %(project-home)/%(project-name)/wsgi.py | |
| # Virtualenv path | |
| home = /path/to/virtualenv | |
| # Master | |
| master = true | |
| # Maximum number of processes | |
| processes = 4 | |
| # The socket (use the full path to be safe) | |
| socket = /tmp/uwsgi.sock | |
| # Appropriate permissions - *may* be needed | |
| chmod-socket = 664 | |
| # Clear environment on exit | |
| vacuum = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment