Skip to content

Commit

Permalink
Added description of "home" option for Python virtenvs.
Browse files Browse the repository at this point in the history
This closes nginx#3 PR on GitHub.
  • Loading branch information
Artem Konev committed Aug 9, 2018
1 parent 163e44b commit db739dd
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions source/configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -497,12 +497,25 @@ Python Application
* - ``path`` (optional)
- Path to search for the WSGI module file.

* - ``home`` (optional)
- Path to Python `virtual environment <https://packaging.python.org/
tutorials/installing-packages/#creating-virtual-environments>`_
for the application. You can set this value relative to the
``working_directory`` of the application.

Note: The Python version used by Unit to run the application is
controlled by the ``type`` of the application. Unit doesn't use
command line Python interpreter within the virtual environment due to
performance considerations.

Example::

{
"type": "python",
"type": "python 3.6",
"processes": 10,
"path": "/www/store/cart",
"working_directory": "/www/store/",
"path": "/www/store/cart/",
"home": "/www/store/.virtualenv/",
"module": "wsgi",
"user": "www",
"group": "www"
Expand Down

0 comments on commit db739dd

Please sign in to comment.