We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 14315
    • 6 Posts
    Hello,

    We use modx for a web application with a lot of custom code in snippets, plugins, external files containing models classes. The site is currently in Evolution 1.0.5. At the beginning we put lots of code in Snippets, but know we put more code in external file to reuse more efficiently the code.

    We are in the process to migrate to 2.2.0

    Evolution was a pain in the ass to work with a proper workflow. We could never do
    dev env -> test env -> prod using git and Continuous Integration tools.
    We code with phpStorm by creating files with the same name as the elements and copy/paste in the manager the content. So we can version control thoses files but they are not the real code which reside in the DB.
    When we want to move code from a test env to prod, we dump tables in the database that contains the code (mainly site_ tables + few others) and rsync the content under /assets

    It is far from perfect. We want to move to an automated provisioning of test env (using Puppet) and an automated deployment in production.

    From my understanding of Revolution, those features are part of the solution to enhance dev worflow:


    How can we use those features/tools to improve our workflow (ideally removing any db dump) ?
      • 3548
      • 102 Posts
      Transport Packages - not practical (takes time to package up stuff), although PacMan http://rtfm.modx.com/display/ADDON/PackMan can be very helpful

      Static Elements - good thing is that your files are synced with db, but you still have to create them in manager. Mirror plugin can help a lot here https://github.com/digitalbutter/MODX-Mirror

      CLI installation - haven't yet tried it

      VersionX 2 - haven't yet tried it, but I wouldn't use it for elements (svn, git...), maybe for clients (for their content)

      Still, problems remain with TVs, system settings, users...

      That is why I am developing a plugin which would enable all (I hope all) manager actions through xml and in combination with static elements I would be able to almost not use manager at all.

      What I am hoping to achieve is:

      Database: all db changes (functional changes, not content) done through files (which are in svn)

      Deployment: Ability to install fresh modx, install this plugin, copy files, run plugin and have same thing as on dev/test enviroment

      Team Collaboration: Every developer has his instance of modx and database (no need to have one database on remote server - insecure, slow...) and only xml and static elements are versioned

      I have done some work already, I hope to have it in a month.

      Suggestions are welcomed.
        Antonio Zdilar
        linearvector.com
        • 14315
        • 6 Posts
        Youe plugin seems really interesting. If you need testers/review we can help you. Are you far from a working version?
          • 3548
          • 102 Posts
          Not too far...I will have alpha version on gitHub sometimes next week, i will post a link here. Testers are always welcome, thanks;)
            Antonio Zdilar
            linearvector.com
            • 3548
            • 102 Posts
            Hi, just to inform you that it will take me some more time. Plugin is coming along nicely, it already works for basic elements (templates, snippets and chunks). I hope to be done completely soon and will post again here when done.

            Regards
              Antonio Zdilar
              linearvector.com
              • 14315
              • 6 Posts
              Hi,
              No problem, we are waiting to test your version.
              In the meantime, we are testing the CLI install with Puppet. It will be a good start.
                • 22448
                • 241 Posts
                Hi Antonio,
                any progress on your plugin?
                  • 3548
                  • 102 Posts
                  Quote from: outre99 at Apr 21, 2013, 12:37 PM
                  Hi Antonio,
                  any progress on your plugin?

                  Hi, plugin is in partially working state. I use it for sites that I am developing for clients, but it is far from production ready. And because of questionable modx's future I probably will not work on finishing it.
                    Antonio Zdilar
                    linearvector.com
                    • 22448
                    • 241 Posts
                    Quote from: blankcheck at Apr 21, 2013, 02:50 PM
                    Quote from: outre99 at Apr 21, 2013, 12:37 PM
                    Hi Antonio,
                    any progress on your plugin?

                    Hi, plugin is in partially working state. I use it for sites that I am developing for clients, but it is far from production ready. And because of questionable modx's future I probably will not work on finishing it.

                    What do you mean by "questionable modx's future"? Just curious
                      • 3548
                      • 102 Posts
                      https://forums.modx.com/thread/?thread=83497&page=

                      It is a lengthy thread...
                        Antonio Zdilar
                        linearvector.com