A deployable archive contains compiled MATLAB code to deploy on a MATLAB
Production Server™ instance. Generate a deployable archive using the
compiler.build.productionServer
function, the Production
Server Compiler app, or the mcc
command line compiler.
In most cases, you can generate the deployable archive on one platform and deploy to a server running on any other supported platform. Unless you add operating system-specific dependencies or content, such as MEX files or Simulink® simulations to your applications, the generated archives are platform-independent.
Production Server Compiler | Package MATLAB programs for deployment to MATLAB Production Server |
Package Deployable Archives with Production Server Compiler App
Package MATLAB applications into deployable archives using the Production Server Compiler app.
Package Deployable Archives from Command Line
Package MATLAB applications into deployable archives from the command line using the
mcc
command.
Use a Data Cache to Persist Data
Persist data between calls to a server instance.
Example: Calculate the Shortest Route Between Cities Using Persistence
Example to calculate the shortest possible route between cities using persistence and MATLAB Production Server RESTful API.
Best practices for writing MATLAB code when deploying to MATLAB Production Server.
Dealing with MATLAB functions that carry state.
Deploying MATLAB Functions Containing MEX Files
How to include MEX files when deploying MATLAB functions.
Supported MATLAB Data Types for Client and Server Marshaling
List of supported and unsupported MATLAB data types.
How to modify and redeploy MATLAB functions.