wordpress icon indicating copy to clipboard operation
wordpress copied to clipboard

Question: Local Development & Deployment

Open lucasjahn opened this issue 5 years ago • 4 comments

Hey there,

thanks for this high-speed setup und all the support you gave on here. I was wondering how I would be able to do active development on the theme of this WordPress setup or write custom plugins and deploy it to the setup. As I saw at the moment it is using a volume (local driver), so I assume I would need to bind this volume to a directory on the server and maybe could then connect a git (bare) repo to update its code and have it inside the dockerized WordPress setup, or how do you do it at the moment? Any tips, hints, suggestions?

Appreciate your work though!

lucasjahn avatar Oct 02 '20 05:10 lucasjahn

Personally, I try to keep each environment well abstracted and ephemeral.

in regards to local development, it depends on what you are trying to accomplish in your workflow. You can install a generic Wordpress instance locally, do your work. You can export from production for use locally as well.

tspicer avatar Oct 02 '20 15:10 tspicer

Ah no okay. What I meant was, how should I deploy my code to the server. I thought about changing the wrdpress.yml compose file to copy a directory like /var/html/wordpres to the container instead of using the volume in the docker files. But not sure if this would be the best way. Locally I have it running. I was just wondering about custom themes and plugin development how the "best" or "best practice" way would be to get my code to the running Docker on the server.

lucasjahn avatar Oct 02 '20 15:10 lucasjahn

Is there a documentation how to use this docker image locally? For local development. More like a way to create self-signed certificates for local environment and for production use to have the certificates generated by LetsEncrypt.

alexszilagyi avatar Jan 06 '21 10:01 alexszilagyi

You may want to see this issue: https://github.com/openbridge/wordpress/issues/19

tspicer avatar Jan 06 '21 16:01 tspicer