Update manual install instructions for local pipenv venv

This commit is contained in:
Christopher C. Wells 2019-12-14 13:09:43 -08:00
parent 1f67380047
commit d961a6c5c4
1 changed files with 5 additions and 4 deletions

View File

@ -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