aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-25 07:44:04 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-03-25 07:44:04 +0100
commit8971cbed055ea19c0e0d507e8a38e013c2decc10 (patch)
tree9b3c20f3c48270cbc43af42dfaf3e44dea53eb71
parentImproved the installation script (not yet tested). (diff)
downloadnewspipe-8971cbed055ea19c0e0d507e8a38e013c2decc10.tar.gz
newspipe-8971cbed055ea19c0e0d507e8a38e013c2decc10.tar.bz2
newspipe-8971cbed055ea19c0e0d507e8a38e013c2decc10.zip
Improved installation script (tested with PostgreSQL, problem with SQLite because pysqlite is not yet ported to Python 3).
-rw-r--r--documentation/deployment.rst1
-rwxr-xr-xinstall.sh7
2 files changed, 6 insertions, 2 deletions
diff --git a/documentation/deployment.rst b/documentation/deployment.rst
index c95dfe91..158eda7d 100644
--- a/documentation/deployment.rst
+++ b/documentation/deployment.rst
@@ -102,7 +102,6 @@ Finally:
.. code-block:: bash
- $ python manager.py db_create
$ python runserver.py
* Running on http://0.0.0.0:5000/
* Restarting with reloader
diff --git a/install.sh b/install.sh
index 232e3902..0b187dea 100755
--- a/install.sh
+++ b/install.sh
@@ -1,7 +1,8 @@
#! /usr/bin/env bash
#
-# This script install all dependencies for pyAggr3g470r.
+# This script install all dependencies and configure pyAggr3g470r
+# for Python 3.
#
sudo apt-get install python libpq-dev python-dev python-pip build-essential git
@@ -31,7 +32,11 @@ if [ "$1" == postgre ]; then
echo '[database]' >> conf/conf.cfg
echo 'uri = postgres://pgsqluser:pgsqlpwd@127.0.0.1:5432/aggregator' >> conf/conf.cfg
elif [ "$1" == sqlite ]; then
+ sudo pip install pysqlite # not working with Python 3!
# Add configuration lines for SQLite
echo '[database]' >> conf/conf.cfg
echo 'uri = sqlite+pysqlite:///pyAggr3g470r.db' >> conf/conf.cfg
fi
+
+python manager.py db_empty
+python manager.py db_create \ No newline at end of file
bgstack15