Skip to content
Snippets Groups Projects
Select Git revision
  • issue/70-hotfix-error-collection-resource-deleted
  • develop default protected
  • issue-68/streak-high_streak-last_action_at
  • issue/65-govbr
  • issue/54-curator-queue
  • issue/58-testar-s3
  • master protected
  • pre-submission
  • pre-languages
  • video-cache
  • tag-clustering-task
  • pre-api
  • orientdb
13 results

delete_production_log.rake

Blame
  • Forked from PortalMEC / portalmec
    4 commits behind, 34 commits ahead of the upstream repository.
    delete_production_log.rake 265 B
    namespace :delete_production_log do
        desc 'Delete production log every x days'
    
        task :delete_log => :environment do
            FileList["log/production.log"].each do |file|
                f = File.open(file, "w")
                f.close
              end
        end
        
    end