From 4b9a0ca121b465aca0d8ecdbccff5b949f01e8fa Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 23 Apr 2014 07:52:15 +0200 Subject: Updated README. The installation process is clearly explained. --- README.rst | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/README.rst b/README.rst index c576b1f8..0e179c14 100644 --- a/README.rst +++ b/README.rst @@ -55,9 +55,15 @@ Deploying the application on a traditional server $ git clone https://bitbucket.org/cedricbonhomme/pyaggr3g470r.git $ cd pyaggr3g470r - $ sudo apt-get install postgresql postgresql-server-dev-9.1 postgresql-client $ sudo apt-get install libxml2-dev libxslt1-dev $ sudo pip install --upgrade -r requirements.txt + $ cp conf/conf.cfg-sample conf/conf.cfg + +If you want to use PostgreSQL: + +.. code:: bash + + $ sudo apt-get install postgresql postgresql-server-dev-9.1 postgresql-client $ sudo -u postgres createuser Enter name of role to add: username Shall the new role be a superuser? (y/n) n @@ -68,12 +74,27 @@ Deploying the application on a traditional server postgres=# ALTER USER username WITH ENCRYPTED PASSWORD 'password'; postgres=# GRANT ALL PRIVILEGES ON DATABASE pyAggr3g470r TO username; postgres=# \q - $ cp conf/conf.cfg-sample conf/conf.cfg + +If you want to use SQLite, just edit the configuration file with the line: + +.. code:: cfg + + [database] + uri = sqlite+pysqlite:///pyAggr3g470r.db + +Finally: + +.. code:: bash + $ python db_create.py $ python runserver.py * Running on http://0.0.0.0:5000/ * Restarting with reloader + +Configuration +------------- + Configuration (database url, email, proxy, user agent, etc.) is done via the file *conf/conf.cfg*. Check these configuration before executing *db_create.py*. If you want to use pyAggr3g470r with Tor/Privoxy, you just have to set the value of -- cgit