aboutsummaryrefslogtreecommitdiff
path: root/README.rst
diff options
context:
space:
mode:
Diffstat (limited to 'README.rst')
-rw-r--r--README.rst25
1 files 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
bgstack15