biigle / maia

:m: BIIGLE module for the Machine Learning Assisted Image Annotation method
GNU General Public License v3.0
2 stars 3 forks source link

Update to store annotation patches in storage disks #35

Closed mzur closed 5 years ago

mzur commented 5 years ago

References #biigle/largo#53

The biigle/distribution setups have to be updated with storage disks for MAIA patches. The configuration can look like this:

'maia-tp' => [
    'driver' => 'local',
    'root' => storage_path('app/public/maia-tp'),
    'url' => env('APP_URL').'/storage/maia-tp',
    'visibility' => 'public',
],
'maia-ac' => [
    'driver' => 'local',
    'root' => storage_path('app/public/maia-ac'),
    'url' => env('APP_URL').'/storage/maia-ac',
    'visibility' => 'public',
],
mzur commented 5 years ago

Existing patch files can be migrated with this command (assuming the files are stored in ./storage/maia_patches):

php artisan maia:migrate-patch-storage --dry-run maia_patches

Remove --dry-run to actually execute the command. The files will be uploaded to the configured storage disks. The old directory can be deleted when the command finished successfully.