forked from NUBIC/LatticeGrid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
update_publications.sh
39 lines (31 loc) · 1.56 KB
/
update_publications.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
34
35
36
37
38
39
#!/bin/sh
# UNIX shell script. written Warren Kibbe, 2009
#for linux box
source /home/wakibbe/.bashrc
source /etc/profile
cd /home/wakibbe/latticegrid
rake RAILS_ENV=production nightlyBuild >> rake_results.txt
#clean up the database to keep queries running smoothly
vacuumdb -fz latticegrid_production -U latticegrid
# monthly run this in another shell script
# rake RAILS_ENV=production monthlyBuild >> monthly_rake_results.txt
#rebuild the application cache
rake RAILS_ENV=production tmp:cache:clear
rake RAILS_ENV=production cache:clear
rake RAILS_ENV=production cache:populate taskname=abstracts > buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigators >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=orgs >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigator_graphs >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=org_graphs >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigator_graphviz >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=org_graphviz >> buildCache.txt
# in development
rake tmp:cache:clear
rake cache:clear
rake cache:populate taskname=abstracts > buildCache.txt
rake cache:populate taskname=investigators >> buildCache.txt
rake cache:populate taskname=orgs >> buildCache.txt
rake cache:populate taskname=investigator_graphs >> buildCache.txt
rake cache:populate taskname=org_graphs >> buildCache.txt
rake cache:populate taskname=investigator_graphviz >> buildCache.txt
rake cache:populate taskname=org_graphviz >> buildCache.txt