Skip to content
Browse files

CLC-506 Consolidate operational log files

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

0 comments on commit a7728a6

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