Closed muzzwood closed 8 years ago
Can you please show your .gitify file, or at least the relevant category/element bits?
Gitify file: data_directory: _data/ backup_directory: _backup/ data: contexts: class: modContext primary: key context_settings: class: modContextSetting primary:
Looking in the _data/ directory, the elements appear to have the correct categories. So perhaps the problem is occurring during the build process. I'll try the process again and report back.
Try moving the categories before the TVs bit, that could be messing things up on a clean environment.
An issue in the build step is likely. Try using Gitify build --verbose
to see what it's doing in more detail, and/or Gitify build --force
to first wipe the relevant tables clean to make sure there's no conflicts.
Hi Mark, what do you mean by moving the categories before the TVs?
I started again from scratch install:modx ran fine.
[2016-02-01 01:55:18](INFO @ ../Gitify/Gitify) Trying to install pdoTools. Please wait...
But I assume this is just because minishop tries to install pdotools and perhaps that way of doing things is incompatible with Gitify. Running install:packages -all again worked without a hitch.
I tried again - this time I ran install:package pdotools before running install:package --all and that corrected the error above.
The mismatching of categories is still happening though. I don't know the inner workings but I'm assuming this is because the installation of packages are taking the ids due to them being installed in a different order to how they were in development.
Would building before installing the packages work at all?
OK manually deleting everything in the cache folder fixed the issue. I had been just clearing the cache that had been generated from the install commands and I know the build command was attempting to clear the cache too but it wasn't enough. In hindsight I should have compared the db tables to the gitify files. Perhaps as a new feature, the build process could delete everything in the cache folder rather than clearing it?
Thanks for the help :)
After building on staging server, many elements are now listed under incorrect categories.
For example my "MusicContentTemplate" was originally under Main->Music but is now just listed under Collections.