Partial Local Deployment
Copy
If you already have a deployed instance of Aras Innovator with data (see section 3.2.6 Build and Deploy Locally), and you want to iteratively update it during development, you can perform a partial deployment to speed up the process and avoid unnecessary steps.
By default,.\BuildAndDeploy.ps1 execution without any parameters will perform the following actions:
- Validate and install build machine prerequisites
- Remove installed Aras Innovator instance
- Install new Aras Innovator instance from baseline
- Build CustomSolutions.sln
- Build new deployment package with all kinds of customizations such as AML changes, Code Tree changes, and Configuration transformation scripts
- Deploy the package on top of the new Aras Innovator instance.
As a result, each time the BuildAndDeploy.ps1 script is executed without parameters, a fresh instance is deployed from scratch — even for minor changes like updating the login page image.
To accelerate development and avoid re-running unnecessary steps, you can use delta deployment option parameters of BuildAndDeploy.ps1 for partial deployments.
Deployment Option Parameters
-UpdateInstance
Deploys all types of customizations (AML changes, CodeTree changes, and Configuration transformation scripts) on top of the existing Aras Innovator instance without removing it.
BuildAndDeploy.ps1 -UpdateInstance
-UpdateAMLOnly
Deploys only AML customizations to the database of the existing Aras Innovator instance.
BuildAndDeploy.ps1 -UpdateAMLOnly
-UpdateCodeTreeOnly
Deploys only the CodeTree customizations (e.g., server-side and client-side code changes) without affecting AML or configuration files.
BuildAndDeploy.ps1 -UpdateCodeTreeOnly
-UpdateConfigurationOnly
Deploys only configuration transformation customizations (e.g., changes in config files in TransformationsOfConfigFiles folder) on top of the existing instance.
BuildAndDeploy.ps1 -UpdateConfigurationOnly
Skip Prerequisite Installation
When running a full .\BuildAndDeploy.ps1, the script validates and installs build machine prerequisites and restores packages. This step is also executed by default when running delta deployments, which can take time even if everything is already set up.
If you are sure that the Aras.DevOps packages are already restored and prerequisites are installed, you can skip this step using the -SkipPrerequisites parameter:
BuildAndDeploy.ps1 -SkipPrerequisites
Example: Fastest Way to Deploy Code Customization
If you have an already configured environment and an existing deployed instance, and you only want to update the CodeTree (e.g., UI or server code), use the following command for the fastest deployment:
BuildAndDeploy.ps1 -UpdateCodeTreeOnly -SkipPrerequisites
This will apply CodeTree customizations directly to the existing instance without re-installing or validating prerequisites.