Skip to content

Commit

Permalink
Closes #610: Add webapp CI script (#613)
Browse files Browse the repository at this point in the history
* Refs #610: adds first version of webapp script

* Refs #610: adds use of virtualenv to script

* Refs #610: fixes indent
  • Loading branch information
janehmueller authored Nov 2, 2017
1 parent 34c0da4 commit bbf2fcf
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions scripts/webapp.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/bin/bash
pid="$(ps aux | grep manage.py | grep server | awk '{print $2;}')"
if [ -n "$pid" ]; then
kill $pid
fi
rm config/cred.json
cp $NEO_CONF config/cred.json
virtualenv flask
cd flask
source bin/activate
pip install -r requirements.txt
pip install flask
pip install Flask-Bootstrap
pip install Flask-Login
pip install Flask-sqlalchemy
pip install flask-restful
pip install py2neo==2.0.9
pip install elasticsearch
pip install Flask-Script
pip install Flask-Migrate
pip install Flask-Wtf
cd ..
BUILD_ID=dontKillMe python manage.py server &
deactivate

0 comments on commit bbf2fcf

Please sign in to comment.