From d961a6c5c47fc7fcdf7b7629613bfeef16ee5d9a Mon Sep 17 00:00:00 2001 From: "Christopher C. Wells" Date: Sat, 14 Dec 2019 13:09:43 -0800 Subject: [PATCH] Update manual install instructions for local pipenv venv --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 8e6ecb5d..b99c8316 100644 --- a/README.md +++ b/README.md @@ -155,6 +155,10 @@ Python 3.5.3+, nginx, uwsgi and sqlite and should be sufficient for a few users 1. Move in to the application folder cd /var/www/babybuddy/public + +1. Set pipenv to install locally. + + export PIPENV_VENV_IN_PROJECT=1 1. Initiate and enter the Python environment @@ -194,8 +198,8 @@ Python 3.5.3+, nginx, uwsgi and sqlite and should be sufficient for a few users project = babybuddy base_dir = /var/www/babybuddy - virtualenv = /path/to/venv chdir = %(base_dir)/public + virtualenv = %(chdir)/.venv module = %(project).wsgi:application env = DJANGO_SETTINGS_MODULE=%(project).settings.production master = True @@ -204,9 +208,6 @@ Python 3.5.3+, nginx, uwsgi and sqlite and should be sufficient for a few users See the [uWSGI documentation](http://uwsgi-docs.readthedocs.io/en/latest/) for more advanced configuration details. - **Note: Find the location of the pipenv virtual environment for the - `virtualenv` parameter with the command `pipenv --venv`.** - 1. Symlink config and restart uWSGI: sudo ln -s /etc/uwsgi/apps-available/babybuddy.ini /etc/uwsgi/apps-enabled/babybuddy.ini