We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 37840
    • 33 Posts
    Hey guys, I am new to modx. I am starting to understand how it all works and i think its great stuff!!! I have one question about the workflow for a site.

    I have read articles that explain how to copy your site from your local install over to a live server.
    http://wiki.modxcms.com/index.php/Moving_Site_To_Another_Location

    This is fine, but lets say you are constantly changing your site, adding new snippets and such but obviously you want to test them locally first. So you add new templates, snippets and documents. When you are happy with the testing you want to transfer these to the live server.

    Now is there a way you can add your new files to your online modx?? There is the trouble that you have two databases so you would have to upload the changed database as well??

    you could just create the new files again online, but what if you made many changes to a number of files and cant keep track of the changes.

    Basically i'm looking for a tool that can copy everything from your local install to your online modx, similar to the way you can image a hard drive.

    --- So if there is no way, how do you guys work?? what is your work flow?? Do you edit the files on the live server but keep them hidden from the user or something??

    Thanks in advance.
      • 16278
      • 928 Posts
      Is this Evo or Revo? You're going to say Revo, I know, but anyway:

      On Evo, I use BkupMODx to download a complete backup of a site for safe development on the PC. It's only the assets folder and database that have to be replaced on the local installation, if you already have a mirror copy set up. Otherwise you need to edit the manager/includes/config.inc.php database details, and maybe run an upgrade install (with no elements selected for installation) just to be sure.

      When I'm happy all is well, I zip the new assets folder, FTP it to the server, rename the live one and unzip the new one (uploading a zillion TinyMCE files individually is far too painful), and import the revised database using PHPmyAdmin. Having made another backup first, naturally.

      :) KP