diff options
author | Mark Wong | 2019-05-29 17:18:00 +0000 |
---|---|---|
committer | Mark Wong | 2019-05-29 17:18:00 +0000 |
commit | cc41d3dba7d11cdd589a83f1284c0a47b444b7f6 (patch) | |
tree | ff6c6799cd550c74f4159b91dd8e3ea56da6f9a2 /README.rst | |
parent | cf7a951b9580e6839464194547efe28757741e98 (diff) | |
parent | 9f7c200c61ae0d8c44155404d21fb7f286ace32b (diff) |
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. |