Before creating a server, ensure you have:
Added the script
folder to your
system PATH
environment variable. Doing so enables
you to run server commands such as mps-new
from
any folder on your system.
Note:
You can run server commands from the |
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 (main_config
)
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.
Enter the 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
the MATLAB Production Server product. When specifying a path, ensure
the path ends with the server_name
.
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
server configuration.
Upon successful completion of the command, MATLAB Production Server creates a new server instance.