Note: This answer is regarding the product version of MATLAB Web App Server. To update the development version of Web App Server, see this MATLAB Answer.
An update fix for an issue appearing in MATLAB Web App Server may be applied in the compiled app, the server product itself, or the server runtime. The steps to update depend on where the fix was applied, but in most cases, updating the compiled app and the server runtime is sufficient to apply the fix.
To update the compiled app:
- Update the MATLAB installation used to compile the web app. You can confirm the update version by running the command matlabRelease from the MATLAB command line.
- Recompile the web app.
To update the server runtime:
- Locate the runtime version currently in use by your Web App Server. If you are unsure of where this is, run the server command webapps-runtime list from the Web App Server scripts directory.
- Uninstall this runtime as per your OS.
- Install the new version of MATLAB Runtime from this page. You can confirm the exact version installed by checking the VersionInfo.xml file located in the runtime root folder.
- If you installed into a different location, note that you will need to run webapps-runtime remove <oldpath> and webapps-runtime add <newpath> to update the runtime directory for the Web App Server.
If these steps do not fix the issue, you may need to update the server product itself.
To update the server product:
- Run webapps-config get and record the output.
- Run webapps-uninstall to unregister the services for the current Web App Server installation.
- Uninstall the Web App Server as per your OS. You may leave the apps, logs, and config folders.
- Install the latest version of MATLAB Web App Server.
- Run webapps-setup to configure the services again.
- Run webapps-config to make additional configurations as per your previous configuration recorded in step (1).
- Though your previous configuration file is typically preserved when uninstalling the Web App Server product, we typically do not recommend reusing this file when updating, as we cannot guarantee compatibility across releases. However, you may use the information in this file to guide configuration.