That'll Teach Me to Merge Indiscriminately!
Rollback rake upgrade task
This commit is contained in:
parent
7f3d0f529b
commit
8957927c7a
|
@ -1,7 +1,9 @@
|
||||||
task :upgrade_instiki => :environment do
|
task :upgrade_instiki => :environment do
|
||||||
|
RAILS_ENV = 'production' unless ENV['RAILS_ENV']
|
||||||
|
puts "Upgrading Instiki in #{RAILS_ENV} environment."
|
||||||
|
|
||||||
Web.all.each do |web|
|
Web.all.each do |web|
|
||||||
public_path = Rails.root.join("public", web.address)
|
public_path = Rails.root.join("public", web.address)
|
||||||
|
|
||||||
if public_path.exist?
|
if public_path.exist?
|
||||||
webs_path = Rails.root.join("webs", web.address)
|
webs_path = Rails.root.join("webs", web.address)
|
||||||
if webs_path.exist?
|
if webs_path.exist?
|
||||||
|
|
Loading…
Reference in a new issue