From 2992eced7e449e8ace4840384c20be6564358fab Mon Sep 17 00:00:00 2001 From: Cédric Bonhomme Date: Wed, 11 Mar 2020 09:51:57 +0100 Subject: Updated README. --- README.md | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 069b8487..daf6d96b 100644 --- a/README.md +++ b/README.md @@ -37,7 +37,7 @@ Newspipe is really easy to deploy. ### Requirements ```bash -$ sudo apt-get install npm postgresql +$ sudo apt-get install npm ``` ## Configure and install the application @@ -47,19 +47,21 @@ $ git clone https://git.sr.ht/~cedric/newspipe $ cd newspipe/ $ npm install $ poetry install -$ cp instance/production.py instance/development.py +$ export Newspipe_CONFIG=sqlite.py $ poetry shell $ python manager.py db_create $ python runserver.py * Running on http://0.0.0.0:5000/ (Press CTRL+C to quit) ``` -If you want to use SQLite you do not need to install PostgreSQL. Simply use -the provided configuration file (in ``instance/sqlite.py``) thank to this -environment variable: +If you want to use PostgreSQL you can customize +the provided example configuration file (in ``instance/production.py``): ```bash -export Newspipe_CONFIG=sqlite.py +$ sudo apt-get install postgresql +$ cp instance/production.py instance/postgresql.py +$ vim instance/postgresql.py # customize it +$ export Newspipe_CONFIG=postgresql.py ``` ## License -- cgit