diff options
Diffstat (limited to 'README.rst')
-rw-r--r-- | README.rst | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/README.rst b/README.rst deleted file mode 100644 index 4b42a52..0000000 --- a/README.rst +++ /dev/null @@ -1,49 +0,0 @@ -PostgreSQL Performance Farm -=========================== - -This repository contains the code for the PostgreSQL Performance Farm. - -web/ ----- - -The web/ directory contains the Django application that forms the basis of the -website. In order to run the site, you will need to setup a Python virtualenv, -e.g:: - - $ sudo pip install virtualenvwrapper - $ source /usr/local/bin/virtualenvwrapper.sh - $ mkvirtualenv pgperffarm - -For ease of future use, configure virtualenvs from your .bash_profile:: - - $ echo "source /usr/local/bin/virtualenvwrapper.sh" >> ~/.bash_profile - -To activate the environment in future sessions, run:: - - $ workon pgperffarm - -Then, install the required modules. Note that we use Django 1.8.11 as that's -what is currently supported on the postgresql.org infrastructure:: - - $ PATH=$PATH:/usr/local/pgsql/bin pip install -r web/requirements.txt - -Next, create a settings_local.py file:: - - $ cp web/pgperffarm/settings_local.py.in web/pgperffarm/settings_local.py - -Edit the file and change the database configuration and other settings to suit -your environment. Make sure you create the required database and user account -on your PostgreSQL server. - -Finally, synchronise the database:: - - $ cd web - $ python manage.py makemigrations - $ python manage.py migrate - -That should be all. To test, run the following command and point a browser at -the URL shown:: - - $ python manage.py runserver - -You should see the index page of the application. |