-
Notifications
You must be signed in to change notification settings - Fork 11
/
update_publications.sh
executable file
·69 lines (60 loc) · 3.71 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#!/bin/sh
# UNIX shell script. written Warren Kibbe, 2009-2011
#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=investigator_graphviz >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigator_awards >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=org_graphs >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=org_graphviz >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=awards >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=mesh >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigator_studies >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=studies >> buildCache.txt
rake RAILS_ENV=production cache:populate taskname=investigator_cytoscape >> buildCache.txt
# in staging
bundle exec rake RAILS_ENV=staging tmp:cache:clear
bundle exec rake RAILS_ENV=staging cache:clear
bundle exec rake RAILS_ENV=staging db:vacuum
bundle exec rake RAILS_ENV=staging cache:populate taskname=abstracts > buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigators >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=orgs >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigator_graphs >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigator_graphviz >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigator_cytoscape >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=org_graphs >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=org_graphviz >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=mesh >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=awards >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigator_awards >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=investigator_studies >> buildCache.txt
bundle exec rake RAILS_ENV=staging cache:populate taskname=studies >> 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=investigator_graphviz >> buildCache.txt
rake cache:populate taskname=investigator_awards >> buildCache.txt
rake cache:populate taskname=org_graphs >> buildCache.txt
rake cache:populate taskname=org_graphviz >> buildCache.txt
rake cache:populate taskname=awards >> buildCache.txt
rake cache:populate taskname=mesh >> buildCache.txt
rake cache:populate taskname=investigator_studies >> buildCache.txt
rake cache:populate taskname=studies >> buildCache.txt
rake cache:populate taskname=investigator_cytoscape >> buildCache.txt