create web app -凯发k8网页登录

main content

create web app

note

to create a web app, you need an installation of the matlab® compiler™ product.

app designer prerequisite

before you can package and then deploy a web app, you need to create an app using matlab app designer. for more information, see (matlab).

steps to package and create a web app

  1. type webappcompiler at the matlab command line to open the web app compiler app.

  2. in the main file section of the toolstrip, click the button to add your app designer .mlapp file to the project. the web app compiler automatically resizes to include an app details section that contains information about the app such as app name, author, summary, description, and version. you can edit information about the app in app designer by clicking edit app details. click refresh to update web app compiler with any changes you have made.

  3. (optional) select copy web app to server app folder check box and specify the path to the app folder on the server where you want the web app archive (.ctf file) to be automatically copied. if you leave this check box cleared, the web app compiler will create the web app archive (.ctf file) in the project folder. you must manually copy or upload the web app archive (.ctf file) to the app folder on the server. .

  4. add supporting files, if any, in the files required for your app to run section. supporting files include any mat-files, images used by your web app, or user-written matlab functions not found by matlab compiler.

  5. click package to package the app, and create a web app archive (.ctf file).

    in the save project dialog box that opens, specify a project name and a location where you want to save the web app project. web app compiler saves your project and opens a package dialog box.

  6. once packaging is complete, in the package dialog box, click open output folder. this step opens the project folder which contains the following files:

    • webapparchivename.ctf

    • mccexcludedfiles.log

    • packaginglog.html

    • requiredmcrproducts.txt

    you can view the log file, packaginglog.html, to see the exact mcc syntax used to package and create the web app archive.

  7. to use the web app, deploy the web app archive file, webapparchivename.ctf. for more information, see deploy web app.

compatibility considerations

in most cases, you can generate a web app archive (.ctf file) on one platform and deploy to a server running on any other supported platform. unless you add operating system-specific dependencies or content, such as mex files or simulink® simulations to your applications, the generated archives are platform-independent.

related topics

网站地图