aboutsummaryrefslogtreecommitdiff
path: root/vagrant
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-09 08:55:49 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2015-02-09 08:55:49 +0100
commit42fc65f5cb107496a0ae64ea1cc872a33d233f97 (patch)
tree5cd30d2404788cb65efe89be7f85db4b67d92d3e /vagrant
parentMisc changes to the layout template. (diff)
downloadnewspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.tar.gz
newspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.tar.bz2
newspipe-42fc65f5cb107496a0ae64ea1cc872a33d233f97.zip
Updated conf file for Vagrant.
Diffstat (limited to 'vagrant')
-rw-r--r--vagrant/bootstrap.sh8
-rw-r--r--vagrant/conf.cfg-sample1
2 files changed, 5 insertions, 4 deletions
diff --git a/vagrant/bootstrap.sh b/vagrant/bootstrap.sh
index f756c468..3dd1a510 100644
--- a/vagrant/bootstrap.sh
+++ b/vagrant/bootstrap.sh
@@ -2,7 +2,7 @@
apt-get update
apt-get upgrade
-apt-get install -y python libpq-dev python-dev python-pip build-essential git
+apt-get install -y python3 libpq-dev python3-dev build-essential git
# Clone the source code of pyAggr3g470r
git clone https://bitbucket.org/cedricbonhomme/pyaggr3g470r.git
@@ -16,7 +16,7 @@ cd pyaggr3g470r
# For lxml:
apt-get install -y libxml2-dev libxslt1-dev
# installation with pip
-sudo pip install --upgrade -r requirements.txt
+sudo pip3 install --upgrade -r requirements.txt
# copy of the default configuration files for vagrant
cp vagrant/conf.cfg-sample conf/conf.cfg
cd ..
@@ -35,12 +35,12 @@ echo "GRANT ALL PRIVILEGES ON DATABASE aggregator TO vagrant;" | sudo -u postgre
# Initializes the database
cd pyaggr3g470r
chown -R vagrant:vagrant .
-sudo -u vagrant python db_create.py
+sudo -u vagrant python3 db_create.py
# start pyAggr3g470r at startup
echo "#!/bin/sh -e" > /etc/rc.local
echo "cd /home/vagrant/pyaggr3g470r/" >> /etc/rc.local
-echo "sudo -u vagrant python runserver.py &" >> /etc/rc.local
+echo "sudo -u vagrant python3 runserver.py &" >> /etc/rc.local
echo "exit 0" >> /etc/rc.local
chmod 755 /etc/rc.local
diff --git a/vagrant/conf.cfg-sample b/vagrant/conf.cfg-sample
index 48cbe7c9..93a0b89c 100644
--- a/vagrant/conf.cfg-sample
+++ b/vagrant/conf.cfg-sample
@@ -4,6 +4,7 @@ admin_email =
recaptcha_public_key =
recaptcha_private_key =
log_path = ./pyaggr3g470r/var/pyaggr3g470r.log
+python = python3
[database]
uri = postgres://vagrant:xxYzToW42@127.0.0.1:5432/aggregator
[feedparser]
bgstack15