Open leibylucw opened 4 months ago
The current plan, as executed by #17 and #22 is as follows:
The Docker compose.yml
file mounts wp-content/themes/<theme-directory>
to the WordPress container at the path wp-content/themes/<theme-directory>
. This allows for the user to develop their theme locally and observe the changes without needing to copy modified files to the container every time changes are made.
This one is non-obvious. Here are some preliminary questions to answer before doing any work:
wp-content/themes
directory and call it a day?Another way to improve on this workflow is to have a composer project to manage themes. This is tracked by #3 and #4.
wp-content/themes
locally to wp-content/themes
on the WordPress container using the read-only flag. This means the container will be able to read contents placed in the local filesystem's wp-contents/themes
, but not write to it. So, whatever content exists on the local filesystem will also persist in the container, but not vice versa. That is to say, the stock WordPress themes will not sync to the local filesystem.
Similar to #7, I need to figure out how themes should be installed. One could tarball their themes directory and extract the contents to their Dockerized setup, but I need to plan for how dock-press handles this.