I read other related questions, but did not find a satisfactory answer to the good git + wordpress + openshift workflow with the official openshift wordpress example . The plugin directory and themes are not under git control (or are they in a hidden .openshift / folder)?
My main problem is that I want the local development environment (Mac) that I have already installed, where I make changes and which has the usual Wordpress folder structure, apache can read it easily without any problems. Then I want to just push the changes in openshift.
My questions:
1. Are there git projects for openshift that support the wordpress-folder structure for local development? How do I rewrite action_hooks? Already have some best practices?
2. Of course, I need two separate wp-config.php files, one for dev and one for production. What is the best way to achieve this? How can I distinguish code if it is local or in openshift?
Help is much appreciated since I want to stick with the free one first, instead of switching to a hero where it is more expensive, but itโs much easier to have a quick Wordpress workflow.
source
share