Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter lohic

    (@lohic)

    Ok I was able to make it work doing this, but I can’t import posts created on the online version… but what i publish on localhost is properly pushed to my github repository (but not synced on the online version). Any idea ?

    Plugin Author James DiGioia

    (@jamesdigioia)

    First, did you create the GitHub webhook? Check the README for instructions: https://github.com/benbalter/wordpress-github-sync/blob/master/README.md#configuring-the-plugin

    If you’re running your website locally, it has to be reachable by the GitHub webhook. If you have the webhook working, you can check the webhook settings and see what the response to the webhook call is.

    Thread Starter lohic

    (@lohic)

    Hello, the web hook seems to work but there is an error in the body message :
    {“result”:”error”,”message”:”Not on the master branch.”}

    Plugin Author James DiGioia

    (@jamesdigioia)

    WPGHS doesn’t import posts not on the master branch, so it looks like everything is working as expected. I should add a note to the README though.

    Thread Starter lohic

    (@lohic)

    Do you mean that if I create a branch, the plugin should be able to import posts and pages ?

    Plugin Author James DiGioia

    (@jamesdigioia)

    Every git repo has (or should have) a master branch where the latest and greatest code lives. WPGHS only imports posts/pages from this branch so the content on your site is in sync with the latest and greatest. This allows you to use git as you normally would (branches, PRs, etc.) and only have it show up when you merge into master.

    Thread Starter lohic

    (@lohic)

    Ok, that’s what I understood. The only thing I can’t make work is importing data from github to another wordpress install. But maybe is their a misunderstood and WPGHS cannot perform this task ?

    Plugin Author James DiGioia

    (@jamesdigioia)

    Assuming you mean exporting from one WP install to import into another through a GitHub repo: It might be possible, but it hasn’t been written with that in mind. The biggest issue is that the post IDs won’t match between two different installs, so I don’t know what kind of issues that will cause and/or how WordPress will deal with that, unless you’re starting one of them from scratch.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘localhost’ is closed to new replies.