Your model has access to the project files for the project from which it was published. The project files are loaded onto the model host like they would be for an executor hosting a Run or Workspace, with few important differences:
The project files are added to the model image when the model version is built. If you start or stop an existing model version, the files available to the model version will not change. If your project files have changed since your current model version was built, you must to build a new version of the model if you want it to see those changes.
Model hosts mount your project files at
/mnt/<username>/<project_name>. This is different from the default behavior of a Run or Workspace, which hosts your project files at
/mnt. There is a default Domino environment variable called
DOMINO_WORKING_DIRthat always points to the directory where your project is mounted. You can easily write code that works in both the standard run and model host environments.
Git repositories attached to projects are only pulled when a model version is built, not every time a model is started. If your external Git repository changes, and you want to pick up those changes in your model, you must build a new version.
Project files mentioned in the
.modelignorefile that are present in the project’s root directory are excluded from the generated model image. These excluded files are not mounted on the model host.