SHIMADA Koji
null+****@clear*****
Fri Oct 12 17:23:33 JST 2012
SHIMADA Koji 2012-10-12 17:23:33 +0900 (Fri, 12 Oct 2012) New Revision: d4b6323e2d18b096d0f0d2a63d6fb84d5ac025d6 https://github.com/logaling/logaling-server/commit/d4b6323e2d18b096d0f0d2a63d6fb84d5ac025d6 Log: Fix path for .logaling.d Modified files: lib/logaling_server.rb Modified: lib/logaling_server.rb (+6 -1) =================================================================== --- lib/logaling_server.rb 2012-10-12 15:35:38 +0900 (79d678e) +++ lib/logaling_server.rb 2012-10-12 17:23:33 +0900 (3e084d7) @@ -1,7 +1,12 @@ module LogalingServer class << self def data_directory - File.join(Rails.root, "data.#{Rails.env}") + #FIXME: need logaling-command's glossary source path problem + unless Rails.env.production? + File.join(Rails.root, "data.#{Rails.env}") + else + File.join(Rails.root, "..", "..", "shared", "data", "data.#{Rails.env}") + end end def repository_base -------------- next part -------------- An HTML attachment was scrubbed... ダウンロード