diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-11 09:51:57 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2020-03-11 09:51:57 +0100 |
commit | 2992eced7e449e8ace4840384c20be6564358fab (patch) | |
tree | 8d183398a8fb644df23b568ca9b34b3e034a31b2 /README.md | |
parent | Updated README. (diff) | |
download | newspipe-2992eced7e449e8ace4840384c20be6564358fab.tar.gz newspipe-2992eced7e449e8ace4840384c20be6564358fab.tar.bz2 newspipe-2992eced7e449e8ace4840384c20be6564358fab.zip |
Updated README.
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 14 |
1 files changed, 8 insertions, 6 deletions
@@ -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 |