Open leibylucw opened 4 months ago
The current plan, as executed by #19 and #24, is as follows:
Uploads are imported by placing a copy of the uploads directory of the user's WordPress site in a directory called wp-content
at the root of the dock-press repo. The WordPress Dockerfile copies this directory to the image, and requires nothing more from the user after placing the directory in the appropriate spot.
dock-press has a Python script that can export uploads from the WordPress Docker container to the local filesystem. The user simply runs this script, and they will get a directory containing the contents of the uploads directory from the container.
This is helpful if they upload photos to their site using the media library and wish to port the files back to the hosted version of their site.
There are currently no plans to work on managing uploads. The possibility exists for supporting S3 buckets to populate the uploads directory if that's what folks are using, but this is superfluous and is currently a stretch goal.
Media assets are an important part of WordPress websites. Binary data shouldn't be stored in the Git repo, so it needs to be determined how somebody can import/export the contents of their uploads directory.