Commit 8be30f67 authored by Alvaro Lorenzo's avatar Alvaro Lorenzo
Browse files

Removed the use of pypy from deploy.

Added a few related libraies installation on install.
parent e7d5386c
...@@ -47,20 +47,13 @@ git clone git@gitlab.noc.soton.ac.uk:owanes/gliders-website.git ...@@ -47,20 +47,13 @@ git clone git@gitlab.noc.soton.ac.uk:owanes/gliders-website.git
# then fetch all our log files and parse them! # then fetch all our log files and parse them!
cd gliders-tools cd gliders-tools
python setup.py install python setup.py install
pip install pymysql
if [ -f /usr/bin/pypy ]; then pip install python-dateutil
mkdir -p /home/gliders/pypyenv pip install lxml==3.4.4
virtualenv -p /usr/bin/pypy /home/gliders/pypyenv --system-site-packages pip install sqlalchemy
source /home/gliders/pypyenv/bin/activate pip install elasticsearch
pypy -m pip install pymysql pip install pymongo
pypy -m pip install python-dateutil python setup.py install
pypy -m pip install lxml==3.4.4
pypy -m pip install sqlalchemy
pypy -m pip install elasticsearch
pypy -m pip install pymongo
pypy setup.py install
source /home/gliders/pythonenv/bin/activate
fi
sudo cp fetchlogs.service /etc/systemd/system/ sudo cp fetchlogs.service /etc/systemd/system/
sudo systemctl enable fetchlogs sudo systemctl enable fetchlogs
...@@ -71,7 +64,7 @@ mysql -u root -p$pass < new_schema.sql ...@@ -71,7 +64,7 @@ mysql -u root -p$pass < new_schema.sql
echo "CREATE USER 'gliders'@'%' IDENTIFIED BY '"$pass"' ;" | mysql -u root -p$pass echo "CREATE USER 'gliders'@'%' IDENTIFIED BY '"$pass"' ;" | mysql -u root -p$pass
echo "GRANT ALL ON gliders.* TO 'gliders'@'%';" | mysql -u root -p$pass echo "GRANT ALL ON gliders.* TO 'gliders'@'%';" | mysql -u root -p$pass
cd bin cd bin
sh migrate_data.sh sh migrate_data.sh $pass
sudo systemctl start fetchlogs sudo systemctl start fetchlogs
# Set up a GitHub API key and add it to .bash_profile # Set up a GitHub API key and add it to .bash_profile
......
File mode changed from 100644 to 100755
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment