aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2014-04-23 07:52:15 +0200
committerCédric Bonhomme <kimble.mandel@gmail.com>2014-04-23 07:52:15 +0200
commit4b9a0ca121b465aca0d8ecdbccff5b949f01e8fa (patch)
treee1b30c4d77e776b537c59c002a1dd07d03882fdc
parentAdded missing librairies for lxml. (diff)
downloadnewspipe-4b9a0ca121b465aca0d8ecdbccff5b949f01e8fa.tar.gz
newspipe-4b9a0ca121b465aca0d8ecdbccff5b949f01e8fa.tar.bz2
newspipe-4b9a0ca121b465aca0d8ecdbccff5b949f01e8fa.zip
Updated README. The installation process is clearly explained.
-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