I want to use git and Gitify to deploy changes to a production site on MODX Cloud. In my git repos, the project root contains config files, a src directory and a www directory. On MODX Cloud, the home directory contains a symlink to the www directory, which git can’t follow.
How can I deploy with git without making the web root the project root and thus having my source and config files in there? Do I have to clone my repo elsewhere and do an rsync to www, maybe using the post-merge hook?
I’m not sure about Gitify, but the PhpStorm IDE has some pretty fancy “deployment” tools, a built-in Git system, and file watchers that I think could do automatic deployment.
I have not used the deployment part, so I don’t know how well it would meet your needs.
Is there a specific reason you use Gitify? Are you just needing to deploy Elements, e.g. templates, extras, chunks, and such? I build sites using Git Package Management and automate the process of injecting into cloud with Github Actions.
If you have to use Gitify, I am guessing you will need to adjust your directory structure. Most instances of it I have seen on Cloud had gitify engaged at the same directory level as the MODX install.
PhpStorm is truly amazing. I think its error catching is in a class by itself. It’s very difficult to do something wrong in PHP that it won’t warn you about.
That said, I’m not crazy about the latest update. It might be fine if you’re not used to the previous version, though.