Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: Local Development & Deployment #15

Open
lucasjahn opened this issue Oct 2, 2020 · 4 comments
Open

Question: Local Development & Deployment #15

lucasjahn opened this issue Oct 2, 2020 · 4 comments

Comments

@lucasjahn
Copy link

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!

@tspicer
Copy link
Contributor

tspicer commented Oct 2, 2020

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.

@lucasjahn
Copy link
Author

lucasjahn commented Oct 2, 2020

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.

@alexszilagyi
Copy link

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.

@tspicer
Copy link
Contributor

tspicer commented Jan 6, 2021

You may want to see this issue: #19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants