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.
Leave a Reply
You must be logged in to post a comment.
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:
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 underapp-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
That is because the plugins and themes are not stored in your git repo on the gear. If you want to have them in your git repo you need to put there source there. I think by default pulling down plugins and themes puts them in your ~//data dir. You can scp or sftp those files down and then put them in your git repo.
In short, changes made outside of git will not be tracked by git.