Before creating a server, ensure you have:
script folder to your
PATH environment variable. Doing so enables
you to run server commands such as
any folder on your system.
You can run server commands from the
The script folder is located at
$MPS_INSTALL is the location where MATLAB
Production Server is
installed. For example, on Windows, the default location is:
Files\MATLAB\MATLAB Production Server\.
the version of MATLAB
Before you can deploy your MATLAB code with MATLAB Production Server, you need to create a server to host your deployable archive.
A server instance is considered to be one unique configuration of
the MATLAB Production Server product. Each configuration
has its own parameter settings file (
as well as its own set of diagnostic files.
To create a server configuration or instance, do the following:
From the system command prompt, navigate to where you want to create your server instance.
mps-new command from
the system prompt:
mps-new [path/]server_name [-v]
path is the path to the
server instance and configuration you want to create for use with
Production Server product. When specifying a path, ensure
the path ends with the
If you are creating a server instance in the current folder, you do not need to specify a full path. Only specify the server name.
server_name — is
the name of the server instance and configuration you want to create.
-v — enables verbose output,
giving you information and status about each folder created in the
Upon successful completion of the command, MATLAB Production Server creates a new server instance.