Commit 738a6df3b2fbbbc04b21ca9186d56f79871fc5f1

Authored by Antonio Terceiro
2 parents f37708d4 9c300442

Merge branch 'rel-0.16.0'

Showing 2 changed files with 6 additions and 2 deletions   Show diff stats
Rakefile.pkg
... ... @@ -18,7 +18,7 @@ Rake::PackageTask.new(Noosfero::PROJECT, Noosfero::VERSION) do |p|
18 18 # application files
19 19 p.package_files.include('app/**/*.{rb,rhtml,rjs,rxml}')
20 20 p.package_files.include('config/**/*.{rb,sqlite3}')
21   - p.package_files.include('config/ferret_server.yml')
  21 + p.package_files.include('config/ferret_server.yml.dist')
22 22 p.package_files.include('db/migrate/*.rb')
23 23 p.package_files.include('db/schema.rb')
24 24 p.package_files.include('doc/README_FOR_APP')
... ...
config/environment.rb
... ... @@ -64,7 +64,11 @@ Rails::Initializer.run do |config|
64 64  
65 65 # Activate observers that should always be running
66 66 # config.active_record.observers = :cacher, :garbage_collector
67   - config.active_record.observers = :article_sweeper
  67 +
  68 + # don't load the sweepers while loading the database
  69 + unless $PROGRAM_NAME =~ /rake$/ && ARGV.first == 'db:schema:load'
  70 + config.active_record.observers = :article_sweeper
  71 + end
68 72 # Make Active Record use UTC-base instead of local time
69 73 # config.active_record.default_timezone = :utc
70 74  
... ...