cms icon indicating copy to clipboard operation
cms copied to clipboard

Command site:clear doesn't remove default assets

Open FrittenKeeZ opened this issue 2 years ago • 0 comments

Bug description

In config/filesystems.php the assets disk remains when running php please site:clear, which results in the public/assets and public/img(static files) aren't pruned. If you then migrate a site using php please migrate:site the script will detect that the assets disk already exists, and instead create assets_main disk and migrate all assets to that.

How to reproduce

  • Have public/assets (and public/img) not empty
  • Run php please site:clear
  • Verify that the folders still have content
  • Verify that the assets disk still exists in config/filesystems.php

Logs

No response

Versions

Statamic 3.2.21 Solo Laravel 8.70.2 PHP 7.4.14 statamic/migrator dev-master

Installation

Other (please explain)

Additional details

Migration

FrittenKeeZ avatar Nov 19 '21 11:11 FrittenKeeZ