We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 50485
    • 56 Posts
    Dear MODXers

    I have been asking some question about the MODX workflow and have received a couple of very helpful responses that mention Gitify. I am a beginner developer (but a very experienced IT and e-learning trainer). I am looking without success for a beginners guide to Gitify - what it is, what it does, what are the pre-requists that I need to learn before any of the pages I can find on it make some sense (e.g do I need to understand Git before Gitify?) Can anyone point me in the right direction.

    Many thanks, Missusdoubleyou
      • 3749
      • 24,544 Posts
      I don't have a specific answer for you, but learning Git is probably the best first step. This is a good free resource: https://git-scm.com/book/en/v2.

      I found this book immensely helpful when I was learning Git.
        Did I help you? Buy me a beer
        Get my Book: MODX:The Official Guide
        MODX info for everyone: http://bobsguides.com/modx.html
        My MODX Extras
        Bob's Guides is now hosted at A2 MODX Hosting
      • Gitify is a command line program you can use to get data in the MODX database, into files you can commit into a version control system like git. It's meant to be used for dev/stage/production workflows ("acceptance workflows" some people call them), as MODX does not natively allow you to version database content.

        Git isn't required, but for the workflows it was meant for, it definitely makes sense to use a version control system like Git, or SVN.

        Gitify's two main commands you can run are `Gitify extract`, which will take information from the MODX database, and write that information to a simple file, formatted in YAML. Those files are then committed to your version control system, pushed to another environment (/MODX installation), and with the second command `Gitify build`, it will read the information from the files, and push that into the MODX database.

        It also has other utilities for installing and upgrading MODX or third party packages, as well as a quick database backup and restore.

        There's also a MODX Extra called Gitify Watch (available for free from modmore.com) which will automatically run the `Gitify extract` command after you've edited a resource or element in MODX, as well as the necessary git commands to commit and push the changed files. That's rather useful for a staging or production environment where you're making quick changes, which also need to be pushed back into your repository.

        The official documentation for Gitify is here: https://docs.modmore.com/en/Open_Source/Gitify/index.html
          Mark Hamstra • Developer spending his days working on Premium Extras and a MODX Site Dashboard with the ability to remotely upgrade MODX and extras to make the MODX world a little better.

          Tweet me @mark_hamstra, check my infrequent blog at markhamstra.com, my slightly more frequent ramblings at MODX.today or see code at Github.
        • There is also a package "modx-gitify-vagrant" that provides a VirtualBox/Vagrant with MODX and gitify all installed for you. I'm working on a step-by-step tutorial on installing it for the MODX Cookbook, which will then lead into a page on using gitify with the dev environment being the Vagrant box and the remote live environment being a MODX Cloud installation. - watch this page https://modxcookbook.com/development/development-environment/gitify-vagrant.html [ed. note: sottwell last edited this post 5 years, 3 months ago.]
            Studying MODX in the desert - http://sottwell.com
            Tips and Tricks from the MODX Forums and Slack Channels - http://modxcookbook.com
            Join the Slack Community - http://modx.org