I can’t quite see where to put the addon repo I’m editing on disk / how to point the server to it. I can see on my server there’s a:
/opt/ayon/ayon-docker/addons/nuke/
folder under which are version folders.
Would I clone the repo under there with some dev-like name and edit the code in place, then on the web interface select that from the drop down for that addon?
When working with dev bundles, there multiple things to keep in mind.
-
It’s expected that dev bundle is meant to be used with one Developer.
-
Addon paths should exist on the developer’s machine.
-
Dev bundle only use the client folder inside the addon clone.
-
For settings, The server relies on the addon within the storage folder inside ayon-docker.
Cloning Addons to work on client side of the addon
There are two options, you can select the one that suits your dev environment.
-
Reuse Storage directory on the server: You can set up a dedicated AYON server for development and re-use addons directory and put your dev addons there as shown in Using Development Versions of Addons
-
Use a separate folder for cloning addons. It’s not required to be on the same machine used for hosting AYON Server. but it has to be on the same machine where you run the AYON launcher in Dev mode.
with option 2: you will need to upload the addon to the server in order to update the settings.
With option 1: the settings are propagated when the code changes BUT you will need to re-select the addon version in your dev bundle if the addon version changed in your dev folder.
Personally, I’m using option 2 as I’m hosting my server on a different machine.
When working on addon’s frontend, you can either run the frontend locally or upload the addon to your server and ensure it’s updated in your production bundle.