[ARVADOS] updated: 0136e134c210fe60e6a1e0eee5e2f77d8bc939dc

git at public.curoverse.com git at public.curoverse.com
Thu Mar 27 17:59:39 EDT 2014


Summary of changes:
 services/api/config/environment.rb |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

       via  0136e134c210fe60e6a1e0eee5e2f77d8bc939dc (commit)
      from  3262e46dd0fff9d6289f8d91207a585df9de7074 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 0136e134c210fe60e6a1e0eee5e2f77d8bc939dc
Author: Tom Clegg <tom at curoverse.com>
Date:   Thu Mar 27 17:59:34 2014 -0400

    Ignore "cache directory does not exist" error when clearing cache at
    server startup.

diff --git a/services/api/config/environment.rb b/services/api/config/environment.rb
index 9ef3a4a..4ccec85 100644
--- a/services/api/config/environment.rb
+++ b/services/api/config/environment.rb
@@ -4,4 +4,9 @@ require 'josh_id'
 
 # Initialize the rails application
 Server::Application.initialize!
-Rails.cache.clear
+begin
+  Rails.cache.clear
+rescue Errno::ENOENT => e
+  # Cache directory does not exist? Then cache is clear, proceed.
+  Rails.logger.warn "In Rails.cache.clear, ignoring #{e.inspect}"
+end

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list