Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve installation steps #3614

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 16 additions & 2 deletions docs/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,19 @@ Next, install the dependencies using ``pip`` (included inside of virtualenv_)::
cd readthedocs.org
pip install -r requirements.txt

.. note::

Make sure you are running the ``python`` command from your virtualenv,
no the one from your system on the next steps.
An easy way to check this is by running the following command on your terminal::

python -c "import sys; print('\n'.join(sys.path))"

If in the output there isn't a path to your virtualenv,
you may check if the virtualenv is activated,
or try with ``python2`` or ``python3`` command respectively.


This may take a while, so go grab a beverage. When it's done, build your
database::

Expand Down Expand Up @@ -137,8 +150,9 @@ superuser account you just created).

For builds to properly kick off as expected, it is necessary the port
you're serving on (i.e. ``runserver 0.0.0.0:8080``) match the port defined
in ``PRODUCTION_DOMAIN``. You can utilize ``local_settings.py`` to modify this.
(By default, it's ``localhost:8000``)
in ``PRODUCTION_DOMAIN``.
You can utilize ``readthedocs/settings/local_settings.py`` to modify this
(by default, it's ``localhost:8000``).

While the webserver is running, you can build documentation for the latest version of
a project called 'pip' with the ``update_repos`` command. You can replace 'pip'
Expand Down