On Thu, 2006-01-26 at 17:55 +0000, James Adam wrote: > That said, I think creating the RAILS_ROOT/tmp directory on-demand is > a good idea - as Jamis points out, there are already files (like > fastcgi sockets) which are floating around and need an appropriate > home - a tmp directory seems to make sense here. It wouldn't be hard > to provide a rake task to clean it up/remove it either: > > desc 'Clear all sessions and temporary files for this application' > task :clear_tmp => :environment do > # presuming RAILS_TMP is either defined by the user, or set by default: > # RAILS_TMP = File.join(RAILS_ROOT, 'tmp') unless > Object.const_defined?(:RAILS_TMP) > FileUtils.rm_r(RAILS_TMP) > end
I'd like to add a 'me too' to the list who would like an on demand tmp directory especially if it is implemented with a RAILS_TMP style constant. This would make a very nice and easy way to tweak configurations on a machine such that any consideration a site may need for the tmp directory could be handled with little to no code changes. -- Steven Critchfield <[EMAIL PROTECTED]> _______________________________________________ Rails-core mailing list Rails-core@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-core