A deployment method for Publish to upload files to a MinIO server.
The plugin used the mc
client and requires your server be configured.
Download the client and see configuration instructions.
import MinIOPublishDeploy
...
try Website().publish(using: [
...
.minio("host-alias", path: "/sites/data/example.com/"),
])
By default the plugin assumes the binary is located at /usr/local/bin/mc
, but can be customized with binPath
.
The plugin mirrors the output directory to the remote location with the following options:
mirror
--remove
--overwrite
-q
-no-color