Deploying a Theme

Back when I wrote about creating a child theme for this blog, I never properly configured deployment of the theme. I attempted to configure it with git --bare init, with the working tree in the wp-contents/themes/ folder. This didn’t work. I’m not entirely sure why, but I suspect it’s due to permissions.

In the end, I cloned the repo into my user home folder:

git clone https://github.com/jeffvautin/twentytwelve-child.git twentytwelve-child

Then I created a softlink from the WordPress themes folder (via ln -s).

Finally, I added the server as a remote on my local copy of the repo, so I can push changes to it with:

git push prod master

Your post must include a link to this post.

How does this work?
Write a response on your own website and include a link to this post. Then submit your response’s URL here. Your response may appear here after moderation. To update or remove it, edit or delete your original post and submit the same URL again. Learn more about Webmentions.