Main Content

Deploy Web App

You can deploy web apps to the 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 Install or Uninstall MATLAB Web App Server Product.

Deploy a Web App by Copying

  1. Navigate to the project folder generated by Web App Compiler (in MATLAB Compiler) during the packing process.

  2. Copy the file webAppArchiveName.ctf 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 (.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.

    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 Run Web App.

Deploy a Web App by Uploading (Available Only with MATLAB Web App Server Product)

Prerequisites

Procedure

  1. Navigate to the web apps home page configured by the server. You can obtain the URL to the home page by executing webapps-status 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.html

    Here, webAppServer is your web app server hostname, and PortNumber is the port specified when configuring the server.

  2. Click on the web apps home page to open the Manage Apps page.

  3. Click and navigate to the project folder generated by Web App Compiler (in MATLAB Compiler) during the packaging process.

  4. Select the file webAppArchiveName.ctf and click Open to upload the web app. You get a confirmation that the webAppArchiveName.ctf was successfully uploaded to the server.

Related Topics