deploy web app
you can deploy web apps to the development version of matlab® web app server™ in one of two ways:
copy the web app archive (
.ctf
file) generated by web app compiler (in matlab compiler™) to the apps folder configured by the server.upload the web app archive (
.ctf
file) generated by web app compiler (in matlab compiler) to the apps folder configured by the server. this deployment option is available only if you have the matlab web app server product installed. for more information, see (matlab web app server).
deploy a web app by copying
navigate to the project folder generated by web app compiler (in matlab compiler) during the packing process.
copy the file
to the app folder configured by the matlab web app server. if you selected the copy web app to server app folder check box in the web app compiler while creating the web app, your web app archive (webapparchivename
.ctf.ctf
file) is automatically be copied to the app folder configured by the server.you can access the app folder by clicking the open app folder button in the matlab web app server utility.
operating system apps folder location windows®
%programdata%\mathworks\webapps\r2023a\apps
linux®
/local/mathworks/webapps/r2023a/apps
macos
/library/application support/mathworks/webapps/r2023a/apps
note
you must have write permissions to the app folder to copy a web app archive (
.ctf
file) to folder.your web app is now deployed and can be accessed from the web apps home page. for more information, see .
deploy a web app by uploading (available only with matlab web app server product)
prerequisites
verify that you have the matlab web app server product installed. for more information, see (matlab web app server).
verify that authentication (matlab web app server) and role-based access (matlab web app server) are enabled on the server.
verify that you are designated as an author while configuring role-based access (matlab web app server).
procedure
navigate to the web apps home page configured by the server. you can obtain the url to the home page by executing (matlab web app server) at the system command-line or by getting the url from an individual who is administering the server. the format of the home page url is:
http://
webappserver
:portnumber
/webapps/home/index.htmlhere,
is your web app server hostname, andwebappserver
is the port specified when configuring the server.portnumber
click on the web apps home page to open the manage apps page.
click and navigate to the project folder generated by web app compiler (in matlab compiler) during the packaging process.
select the file
and click open to upload the web app. you get a confirmation that thewebapparchivename
.ctf
was successfully uploaded to the server.webapparchivename
.ctf