Deploy to Test and Production Instances
When a project is first created and configured, it's typically set up so that changes committed to the main
branch automatically kick off a pipeline that packages the visual app and deploys it to whichever Visual Builder instance was named as the project's Development instance. To deploy your visual applications to other non-production instances, like a test pod or another Development environment, you'll need to create new packaging and deployment jobs and create a pipeline to run the jobs.
Note:
Before you proceed, contact your Visual Builder administrator and make sure that the Visual Builder test and production instances are properly configured and running. For example, you may want to confirm that security options are configured for each instance and the instance points to the correct database for test and production.Set Up the Project for Testing
When your development cycles are complete, configure the VB Studio project to build and deploy visual applications to a Visual Builder test instance. This involves the following steps:
To perform this action: | Do this: |
---|---|
1. Create an environment for the Visual Builder test instance. Your test instance can reside either in the same identity domain as your VB Studio instance or in another identity domain. |
|
2. Create a new test branch in your project's Git repo. |
|
3. Create copies of your existing development packaging and deployment jobs and modify them to deploy to the test instance. | Create a copy of the packaging job used for development and modify it:
Create a copy of the deployment job used for development and modify it:
|
4. Set up a pipeline for the test instance. |
|
5. Run the pipeline. In most cases, you'll want to have this pipeline automatically triggered when anyone commits to main , but you do have the option to run the pipeline manually. (As an developer working alone or with just a few others on a project, it's unlikely that this option would appeal to you, but it does exist.)
|
|
Set Up the Project for Production
To perform this action: | See this: |
---|---|
1. Create an environment for your Visual Builder production instance.
(Optional) Confirm the instance and environment are set up correctly for deploying to a custom URL. |
Set Up Additional Deployment Instances |
2. Create a new branch in your project's Git repo for changes that are ready for production. After creating this branch, any changes pushed to the main branch won't be added automatically to the production branch. Instead, you must create a merge request or manually push the changes to the production branch, as a means of protecting the branch against untested or unwanted additions.
|
Create a Production Branch |
3. Create and configure the production build jobs:
|
|
4. (Optional) Restrict users who can edit the production jobs or run their builds. | Configure a Production Job's Privacy Setting |
5. Set up the pipeline. | Create and Configure a Pipeline |
6. Run the pipeline. | Run the Pipeline |
See Set Up the Project to Deploy for Production in Administering Visual Builder Studio.