Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to pull all data from openshift via git

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.

like image 477
Mukesh Yadav Avatar asked Dec 01 '25 16:12

Mukesh Yadav


1 Answers

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:

  1. Make sure what is live on the website is what you want to keep/backup.
  2. Open the command line and take a snapshot of your app by typing in:

    rhc snapshot save -a {appName}
    
  3. You should now have a file named appName.tar.gz (this will be exported to a location depending on where you are in the command line)
  4. Unzip this file and look under app-root/repo/php/wp-content to see your themes and plugins. Your uploads(media) will be under app-root/data/uploads.
  5. Put these theme and plugin files in your local repository. Git add, commit and push them to stay in sync.

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

like image 59
Ahmed Avatar answered Dec 03 '25 14:12

Ahmed



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!