Main Content

Deploy Archive to MATLAB Production Server

R2026b

After you package MATLAB® functions into MATLAB Production Server™ deployable archives, you can upload the archives to your server instance. For clients to access the archives, your server instance must be running.

The deployable archive has the name project_name.ctf. If you use the Production Server Archive Compiler (MATLAB Compiler SDK) app to create a deployable archive, the archive is available in the output folder of the deployment project. If you use the compiler.build.productionServerArchive (MATLAB Compiler SDK) function to create a deployable archive, you can specify an output folder to create the deployable archive.

If you create a deployable archive using the Production Server Archive Compiler (MATLAB Compiler SDK) app, you can deploy directly from the app. For more information, see Deploy Archive from Within Production Server Archive Compiler App (MATLAB Compiler SDK).

For both on-premises and cloud server instances, you can use the RESTful API for Secure Management of Deployable Archives to deploy archives. For more information, see Upload Deployable Archives.

For on-premises server instances managed using the command line, you can deploy archives by copying the deployable archive into the folder specified by the auto-deploy-root property. By default, the server uses the auto_deploy folder in your server instance. You can add a deployable archive into the auto_deploy folder of a running server. The server monitors this folder dynamically and processes the deployable archives that are added to the auto_deploy folder.

For on-premises server instances managed using the Admin Portal and server deployments on Azure® and AWS®, you can use the Admin Portal and cloud Admin Portal, respectively, to upload and share MATLAB applications. For uploading applications for server deployments in AWS, see Upload MATLAB Application and Upload MATLAB Applications.

For servers running in Kubernetes®, you can upload the deployable archive to your network file server or Azure file share. All users must have read permission to the deployable archive. For deployment details in Kubernetes, see the MATLAB Production Server in Kubernetes repository on GitHub®.

See Also

Apps

Functions

  • (MATLAB Compiler)

Topics