Main Content

Production Server Compiler

Package MATLAB programs for deployment to MATLAB Production Server

Description

The Production Server Compiler app tests the integration of client code with MATLAB® functions. It also packages MATLAB functions into archives for deployment to MATLAB Production Server™.

Production Server Compiler app

Open the Production Server Compiler App

  • MATLAB Toolstrip: On the Apps tab, under Application Deployment, click the app icon.

  • MATLAB command prompt: Enter deploytool. Click Production Server Compiler.

  • MATLAB command prompt: Enter productionServerCompiler.

Parameters

expand all

Specify the type of archive to generate as a character array.

Specify the functions to package as a list of character arrays.

Specify the name of the archive as a character array.

Specify the files that must be included with archive as a list of filenames.

Specify the optional files installed with archive as a list of files.

Settings

Specify the flags controlling the behavior of the compiler as a character array.

Specify the folder where log files are stored as a character array.

Specify the folder where files for testing are stored as a character array.

Specify the folder where files for building a custom installer are stored are stored as a character array.

Specify the folder where generated installers are stored as a character array.

Programmatic Use

expand all

productionServerCompiler opens the Production Server Compiler app for the creation of a new compiler project.

productionServerCompiler(projectName) opens the Production Server Compiler app and loads a previously saved project. Specify the projectName file as a string or character vector. The project must be on the current path.

Example: productionServerCompiler("mymagic.prj")

Limitations

  • The Production Server Compiler app supports testing but not packaging of archive-level routes that map request URLs to web handler functions stored within the archive. If you test routes defined in an archive-level routes JSON file and then build the archive, the routes file is not included in the archive and the routes do not work. To package archive-level routes, use the mcc command instead. For more details on web request handlers, see Handle Custom Routes and Payloads in HTTP Requests (MATLAB Production Server) and Test Web Request Handlers.

Version History

Introduced in R2013b

expand all