Configure the Development Version of MATLABWeb App Server in MATLABCompiler
To configure the development version of MATLAB® Web App Server™:
Package the simple calculator app from App Designer using the Web App Compiler app in MATLAB Compiler™. This step creates a web app archive (.ctf) file. Deploy the web app archive (.ctf) file to the development version of MATLAB Web App Server. Run the web app from the web apps home page. However, if you want to integrate the server in an enterprise ecosystem with authentication and role-based access capabilities, continue to run web apps created using different releases of MATLAB, have no limit on the number of end-users accessing web apps, you need to purchase the MATLAB Web App Server product.
Get a Free Trial: Get Pricing Info: Ready to Buy: Package MATLAB® programs as standalone ap.
Navigate to the development version of MATLAB Web App Server installation location and run the server application. For information about installing the server, see Install the Development Version of MATLAB Web App Server in MATLAB Compiler.
Platform Steps Windows®
(Administrator)
Default location of the server application is:
C:Program FilesMATLABMATLABWebAppServerR2020bapplication
Right-click
MATLABWebAppServer.exe
and select Run as administrator.Linux®
Default location of the server application is:
/usr/local/MATLAB/MATLABWebAppServer/R2020b/application
At the shell prompt, type:
run_MATLABWebAppServer.sh <MATLAB_Runtime_Location>
For example:
run_MATLABWebAppServer.sh /usr/local/MATLAB/MATLAB_Runtime/v99
macOS
When you are looking for funding to purchase a business, get a line of credit, or get a loan for your established business, our advisors will walk you through the funding process. When you walk into traditional financial institutions, you are putting faith into your commercial lender to get a loan approved by their loan committee. St. louis small business financing guides. Luckily, there are many options for financing your St. Your financing will be determined by a few factors, including personal credit score, projected revenues, and collateral. The best financing options for your new business also depend on how soon you need funding and how your customers will pay you (invoices, credit cards, etc.). A simple checklist to grow your St. Louis business from day one. From funding options and registering a business name, to accounting and marketing services, this checklist gives you an easy to follow blueprint for a successful small business.
Default location of the server application is:
/Applications/MATLAB/MATLABWebAppServer/R2020b/application
Double-click the app
MATLABWebAppServer.app
Click the Service Registration tab, and select one of two options:
Register the web apps services using the default accounts
Selecting this option registers two services:
A service to run the server represented by the tab Server Service User.
A service to run the apps represented by the tab Worker Service User.
Operating System Server Service Information Apps Service Information Windows
Account Name:
MwWebAppServerR2020b
Service Name:
mw-webapps-R2020b
Account Name:
MwWebAppWorkerR2020b
Service Name:
mw-webapps-launcher-R2020b
Eye exam for ny drivers license renewal.Linux
Account Name:
MwWebAppsServerR2020b
Service Name:
mw-webapps-R2020a
Service File:
/etc/systemd/system/mw-webapps-R2020b.service
Account Name:
MwWebAppsWorkerR2020b
Service Name:
mw-webapps-launcher-R2020b
Service File:
/etc/systemd/system/mw-webapps-launcher-R2020b.service
macOS
Account Name:
MwWebAppsServerR2020b
Service Name:
com.mathworks.mw-webapps-R2020b
Service File:
/Library/LaunchDaemons/com.mathworks.mw-webapps-R2020b.plist
Account Name:
MwWebAppsWorkerR2020b
Service Name:
com.mathworks.mw-webapps-launcher-R2020b
Service File:
/Library/LaunchDaemons/com.mathworks.mw-webapps-launcher-R2020b.plist
Register the web apps services using existing local accounts
Selecting this option requires you to register two services represented by the tabs Server Service User and Worker Service User using two local account names and passwords.
You can start or stop the installed service from the Configure and Run tab. The service is automatically started once the service is successfully registered. If the service does not start automatically, click .
Start/Stop the server.
Open the web apps home page.
Open the app folder containing the web app archive (
.ctf
) files.Open the server log folder.
Specify the port number. Default port is
9988
.Startup Timeout (sec): Defines the maximum time to prepare a new session for the requested app, in seconds. If server is under heavy load or hardware is not adequate, you may need to tweak this setting. Default value is
45
seconds.Session Timeout (min): Defines the time interval in minutes after which session will be stopped on the server. When session is running and browser tab is opened, periodic heartbeat messages will let server know that user is still interested in the session. If session was abandoned for reasons like computer going to sleep or network disconnected, this interval will define for how long the session will be kept alive on the server. Default value is
5
minutes.Enable SSL and use HTTPS. For more information, see Enabling HTTPS.
Once you have installed and started the server, click the button to open the folder where compiled web apps are served from. Then serve your web apps by dropping their
files in this folder. If the path specified for App Path does not exist, it is created after you start the service.appName
.ctfTo open your web apps home page, click .
You can also configure the service by specifying:
the port number used for your web apps
timeout values for the session and for startup time
After making any changes, click Apply to save your configuration.
To stop the service, go to the Configure and Run tab, and click .
To unregister the service, go to the Service Registration tab, and click .
Note
The maximum number of sessions that the server supports is limited to 32. However, the amount of RAM on the machine may limit you to fewer than 32 sessions.
The server limits the number of MATLAB Compiler™ licensed users who can upload and run web apps to 10.
Related Topics
In this video, we show how you can create Standalone Applications from your MATLAB programs by using MATLAB Compiler. You can share these applications with users who do not need to modify the underlying code. This application, for example, does not need MATLAB installed to run it. You can load custom files, get an audio response when you click on this button, and also get a visual output, thanks to MATLAB graphics.
But before we can use the application, we need to design it in MATLAB. You will use the guide feature in MATLAB to build this SUI, along with some MATLAB programming to do the back-end computation. To be able to share this application such that it runs without the need of a MATLAB installation, you can use the MATLAB Compiler add-on product.
Open the Application Compiler that is inside the MATLAB Apps Gallery. Within this interface, you pick the main MATLAB file that you created for programming your application. Once you pick the main file, MATLAB Compiler automatically recognizes some file dependencies, like MATLAB functions being used in the main program, and the FIG file needed for the user interface. I can add some user specific data through a MAT file, which is essentially a basic MATLAB file type used to store MATLAB variables and objects.
Next, you have options like choosing an icon, and a splash screen that shows up when the user of your application is installing it on their machine. More options here allow you to add additional customizations, such as version number and author information. Once you are all set with the customizations, you have the option to package in the Automatic Installer for MATLAB Runtime Libraries. The applications will use these front time libraries to run on the target machine, instead of requiring an installation of MATLAB.
You can either leave this option to the default download from Web Option, or it can add MATLAB runtime libraries with the package by choosing this other option. MATLAB Runtime is a onetime installation, so the application setup will skip this installation if it finds the right libraries already installed on the computer. Having said all the options, we can now package this application to create a shareable file. Once the packaging is complete, you'll see a far redistribution folder created for you. Inside this folder, there is this single setup file that you can share with your users or colleagues who do not have MATLAB.
On your user's computer, executing this setup file brings up the application installer with the splash screen we had picked. Once the installation is complete, the application appears in the programs list and runs like any other program without needing MATLAB. To summarize, you start by creating your application in MATLAB. Then use the MATLAB Compiler to create an installer that can be shared with your users. On the user's machine, the installer will automatically install the application, along with the runtime libraries that it needs to run with.
Matlab Compile App To Dmg Windows 10
To learn more about the MATLAB Compiler, please visit the product web page on mathworks.com, or choose a link below.