Openshift + wordpress + git

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.

+4
source share
1 answer

, wordpress , , . , php-5.4/mysql-5.5, git, WordPress, , wp-config.php OpenShift . wp-config.php if openshift . WordPress, , : https://github.com/openshift-quickstart/openshift-wordpress-developer-quickstart

+5

Source: https://habr.com/ru/post/1539579/


All Articles