From 8957927c7ad9e08dcb935df7e2fd27ab7b3348ac Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 5 Sep 2009 23:21:44 -0500 Subject: [PATCH] That'll Teach Me to Merge Indiscriminately! Rollback rake upgrade task --- lib/tasks/upgrade_instiki.rake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/upgrade_instiki.rake b/lib/tasks/upgrade_instiki.rake index b629ffb5..ef242c42 100644 --- a/lib/tasks/upgrade_instiki.rake +++ b/lib/tasks/upgrade_instiki.rake @@ -1,7 +1,9 @@ task :upgrade_instiki => :environment do + RAILS_ENV = 'production' unless ENV['RAILS_ENV'] + puts "Upgrading Instiki in #{RAILS_ENV} environment." + Web.all.each do |web| public_path = Rails.root.join("public", web.address) - if public_path.exist? webs_path = Rails.root.join("webs", web.address) if webs_path.exist?