• Heya – so I’m attempting to use Subversion with WordPress and I’m encountering an issue that I’d like some advice and insight on.

    When a developer and I make changes to the files, SVN obviously keeps track of them and then when I run an update on the live server those are committed there. But what happens when users upload media on the live server? I have to manually run an SVN commit back to the repository don’t I?

    If so, that seems really impractical because clients do that regularly. Any solutions? Thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    You only have to run a commit if you also want the media files (pics and such) stored in SVN as well.

    Thread Starter Spencer Hill

    (@ws5f3dj7)

    Right – and that’s what I’m trying to resolve. Is – say – on an ecommerce site that’s being updated daily with new photos… how do I keep those new uploaded images/files in sync without having to run a manual commit all the time?

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    how do I keep those new uploaded images/files in sync without having to run a manual commit all the time?

    Well, two options:

    1. You run it manually all the time.

    2. You make a (one-line) script to auto-commit whatever is in the uploads directory every so often, and then make a cron job on the server to run it regularly.

    Thread Starter Spencer Hill

    (@ws5f3dj7)

    Cool, number two is really helpful. Thanks very much.

    I’m not experienced with writing a script to execute a command line – could you give me some direction as to where I might get started to create something like that? Thanks!

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Hmm… Weird question, that. I never actually read anything to learn it, I just sorta did it. Best I can give you is this:

    https://www.google.com/search?q=shell+scripting

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Using Subversion with WordPress, need help…’ is closed to new replies.