docs: Fix manual installation instructions.

The previous version didn't correctly handle permissions around the
virtualenvs.
This commit is contained in:
Umair Khan
2016-11-28 14:29:23 +05:00
committed by Tim Abbott
parent aa5a7bc659
commit cd19a3d870

View File

@@ -267,12 +267,14 @@ virtualenvs - /srv/zulip-venv and /srv/zulip-py3-venv.
If you want to do it manually, here are the steps: If you want to do it manually, here are the steps:
``` ```
virtualenv /srv/zulip-venv -p python2 # Create a python2 virtualenv sudo virtualenv /srv/zulip-venv -p python2 # Create a python2 virtualenv
sudo chown -R `whoami`:`whoami` /srv/zulip-venv
source /srv/zulip-venv/bin/activate # Activate python2 virtualenv source /srv/zulip-venv/bin/activate # Activate python2 virtualenv
pip install --upgrade pip # upgrade pip itself because older versions have known issues pip install --upgrade pip # upgrade pip itself because older versions have known issues
pip install --no-deps -r requirements/py2_dev.txt # install python packages required for development pip install --no-deps -r requirements/py2_dev.txt # install python packages required for development
virtualenv /srv/zulip-py3-venv -p python3 # Create a python3 virtualenv sudo virtualenv /srv/zulip-py3-venv -p python3 # Create a python3 virtualenv
sudo chown -R `whoami`:`whoami` /srv/zulip-py3-venv
source /srv/zulip-py3-venv/bin/activate # Activate python3 virtualenv source /srv/zulip-py3-venv/bin/activate # Activate python3 virtualenv
pip install --upgrade pip # upgrade pip itself because older versions have known issues pip install --upgrade pip # upgrade pip itself because older versions have known issues
pip install --no-deps -r requirements/py3_dev.txt # install python packages required for development pip install --no-deps -r requirements/py3_dev.txt # install python packages required for development