make blank site working better

This commit is contained in:
Matt K. Fu committed 2013-05-14 11:26:35 +08:00
1 parent 1096db79b6
commit ef2c732d2e
6 files changed
+11 -7

No files matched your search

+4 -5
View File
@@ -3,15 +3,14 @@
namespace :site do
task :build => :environment do
Site.destroy_all
Purchase.destroy_all
Site.create( :school => 'RulingDigital University', :department => 'Computer Science', :valid_locales => [ 'en', 'zh_tw' ], :in_use_locales => [ 'zh_tw', 'en' ])
User.create!(:email=>'chris@rulingcom.com',:admin=>true,:user_id=>'chris',:password=>'password')
put "Run ensureIndex on chunks before you upload something. If You start DB from nothing."
puts 'Please upload design package and run rake site:necessary_data'
`mongo #{Mongoid.config.database.name} --eval "db.fs.chunks.ensureIndex({files_id: 1, n: 1})"`
puts "Congres you can now login within url"
puts 'Please upload design package (/admin/designs/upload_package ) and run rake site:necessary_data'
end
task :necessary_data => :environment do