I created an wordpress application on openshift.com, after installing I downloaded and installed plugins and themes from admin panel.
Now when I try to clone the app on my local machine it only fetches default wordpress site.
Plugins and themes are not being clone.
Changes to the gear itself bypasses git. Ideally you would upload your themes and plugins on your local copy of the repository and then push it to your openshift app. Alternatively you can keep your regular workflow and just do the following:
Open the command line and take a snapshot of your app by typing in:
rhc snapshot save -a {appName}
appName.tar.gz (this will be exported to a location depending on where you are in the command line)app-root/repo/php/wp-content to see your themes and plugins. Your uploads(media) will be under app-root/data/uploads. Note: If you used the openshift wordpress application then you'll notice that the uploads folder is excluded from git entirely. This means you can add media as usual from the wordpress dashboard but keep your code under git versioning.
Source: https://openshift.redhat.com/community/kb/kb-e1065-what-is-application-crud-and-how-should-i-handle-it-in-openshift
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With