-
Notifications
You must be signed in to change notification settings - Fork 0
/
runner.sh
executable file
·33 lines (25 loc) · 1.09 KB
/
runner.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
#flush solr We don't need it anymore
#curl http://parlameter.si:8983/solr/knedl/update -H "Content-Type: text/xml" --data-binary '<delete><query>*:*</query></delete>'
#curl http://parlameter.si:8983/solr/knedl/update -H "Content-Type: text/xml" --data-binary '<commit />'
#export speeches to solr
cd "/home/parladaddy/parladata"
source "venv/bin/activate"
python manage.py runscript export_to_solr > sorl_export.log 2>&1 &&
deactivate
cd "/home/parladaddy/parlalize"
source "venv/bin/activate"
echo $PWD
echo "Start update"
python manage.py runscript update_from_shell > runner_update.log 2>&1 &&
#echo "Start runner all mps"
#python $DIR"/manage.py" runscript all_persons_runner > $DIR"/runner_all_m.log" 2>&1 &
#echo "Start runner pgs"
#python $DIR"/manage.py" runscript pgs_runner > $DIR"/runner_pgs.log" 2>&1 &
#echo "Start runner sessions"
#python $DIR"/manage.py" runscript sessions_runner > $DIR"/runner_sessions.log" 2>&1 &
#echo "Start runner signle persons"
#python $DIR"/manage.py" runscript single_person_runner > $DIR"/runner_single.log" 2>&1 &
wait
echo "End update"
deactivate