Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

CLC-506 Consolidate operational log files

  • Loading branch information...
commit a7728a6af465ff4c8afd1017b42ce5bd8afa1843 1 parent a832b11
Ray Davis raydavis authored
4 config/deploy.rb
@@ -15,8 +15,8 @@
15 15 set :project_root, settings.common.root
16 16
17 17 # Calcentral_dev is the IST configured server setup we have for calcentral-dev.berkeley.edu. It
18   -# currently consists of 3 app servers, a shared postgres instance, ? memcache servers and ? elasticsearch
19   -# servers.
  18 +# currently consists of 3 app servers (which also run memcached), a shared postgres instance,
  19 +# and 1 elasticsearch server.
20 20 namespace :calcentral_dev do
21 21 desc "Update and restart the calcentral_dev machine"
22 22 task :update, :roles => :calcentral_dev_host do
6 script/build-trinidad.sh
@@ -3,7 +3,7 @@
3 3
4 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6   -LOG=log/start-stop.log
  6 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
7 7 LOGIT="tee -a $LOG"
8 8
9 9 # Enable rvm and use the correct Ruby version and gem set.
@@ -25,7 +25,3 @@ bundle install
25 25 echo "`date`: Rebuilding static assets..." | $LOGIT
26 26 bundle exec rake assets:clean
27 27 bundle exec rake assets:precompile
28   -
29   -# TODO Update database schema after update.
30   -# echo "`date`: Updating database..." | $LOGIT
31   -# bundle exec rake db:migrate
2  script/calcentral-update.sh
@@ -3,7 +3,7 @@
3 3
4 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6   -LOG=$HOME/calcentral/log/redeploy.log
  6 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
7 7 LOGIT="tee -a $LOG"
8 8
9 9 # Enable rvm and use the correct Ruby version and gem set.
4 script/migrate.sh
... ... @@ -1,9 +1,9 @@
1 1 #!/bin/bash
2   -# Script to run capistrano
  2 +# Script to migrate database schema and perform other cluster-wide updates
3 3
4 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6   -LOG=$HOME/calcentral/log/migrate.log
  6 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
7 7 LOGIT="tee -a $LOG"
8 8
9 9 # Enable rvm and use the correct Ruby version and gem set.
5 script/start-trinidad.sh
@@ -3,12 +3,9 @@
3 3
4 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6   -LOG=log/start-stop.log
  6 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
7 7 LOGIT="tee -a $LOG"
8 8
9   -# TODO Make sure memcached is running.
10   -# /usr/local/bin/memcached -d
11   -
12 9 # Kill all instances of trinidad if there are any running.
13 10 echo | $LOGIT
14 11 echo "------------------------------------------" | $LOGIT
2  script/stop-trinidad.sh
@@ -2,7 +2,7 @@
2 2
3 3 cd $( dirname "${BASH_SOURCE[0]}" )/..
4 4
5   -LOG=log/start-stop.log
  5 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
6 6 LOGIT="tee -a $LOG"
7 7
8 8 echo "------------------------------------------" | $LOGIT
2  script/update-build.sh
@@ -3,7 +3,7 @@
3 3
4 4 cd $( dirname "${BASH_SOURCE[0]}" )/..
5 5
6   -LOG=log/update-build.log
  6 +LOG=`date +"log/start-stop_%Y-%m-%d.log"`
7 7 LOGIT="tee -a $LOG"
8 8
9 9 echo "=========================================" | $LOGIT

0 comments on commit a7728a6

Please sign in to comment.
Something went wrong with that request. Please try again.