Regarding git and pushing changes from our development servers to production, hope someone can advise and help us with this.
What we do:
Stop the gateway
Pull changes on the current branch, this meaning adding tags.json and unary-resource.json files in their respective folders.
Starting the gateway
Then this happens:
Ignition deletes all the new files and starts the gateway without these tags.
We see nothing in the gateway log, but found migration.md files being created. Example below, don't know if related?
Tested with copying all my tag files to resources/external. They then show up in the designer, woho!
But: Adding another tag inside one of these folders does not affect the file system at all, neither in core or external, and Im not able to track changes with git. There is no easy way to choose where to store tag files in the designer either ?
Is it only tags.json that is affected, or are the udts.json files being deleted too? I’m also assuming you’re referring to the tag-definition directory.
When you say you’re restoring the files, are you restoring the repository to the last commit, or are you selectively restoring only the deleted tags.json files?
Thanks for replying. Its both tags and UDTs in tag-definition and tag-type-definition being deleted.
My theory is that tag import does something more than just creating the files. There is a difference between the files and the ignition engine even after scanning the file system. Just pulling files does not affect the engine, and it overwrites the changes at restart.
Thanks for replying. I watched your video and I think we do very much the same. It works very well with gateway config and views, but we are struggeling with tags. Its like the gateway doesnt catch that these files are added. I could not see if any of your scripts do any import and export on the fly.
Not sure what you mean by import and export. As Jasper alluded to, You should commit your tags, pull the changes, and rescan the configuration and the gateway should automatically update the tags and tag definitions.
In the meantime, I would reach out to support and reference this forum post. If you can attach anymore information like your compose file, environment setup etc, that would be helpful. Are you doing anything special for the tags specifically that is different from your other gateway resources?