How to Update a deployed Frontend UI in Nginx?
Objective
You deployed an environment and your UI Frontend widget, then you developed new updates and would like to patch the widget.
Steps
UI modules are part of the virtual host code that the nginx creates therefore to update them, we need to update the nginx:
- Go to Deploy pillar → Clouds & Deployments
- Click on Nginx Tab
- Lookup the nginx entry
- Open the Service Operations menu
- Click Restart Service
Restart Service
This operation will restart your service using the exact same settings that were used to deploy it in the first place.
The SOAJS deployer inside the SOAJS image will pull the changes then will check if you have any Custom UI widget changes and pulls them as well.
Then it will build the upstream configuration to point to the SOAJS Controller and create the virtual host entry for the UI widget and start the nginx server.
While the deployer is running, your old nginx remains operational until the new one is flagged as running by either Docker Swarm or Kubernetes depending on which of the two drivers you have chosen.
When the new nginx becomes ready, then the old one will be terminated; your Nginx is now updated and contains the new custom UI widget updates.