Matlab web app server issue

22 次查看(过去 30 天)
Mohanad
Mohanad 2023-7-18
回答: Himanshu 2023-8-28
Hello,
I have designed an app using appdesigner, but when I compile it as a web app, this error appears:
How can I get a server url that is working to deploy to? I have matlab runtime installed.
The development version of the web app server provides a link as localhost:9988, which can not be shared with others.
Can you please help on how to publish it on a working web server provided by mathworks?
Thank you.
regards,
Mohanad

回答(2 个)

Pranjal Saxena
Pranjal Saxena 2023-7-25
Hi Mohanad,
I understand that you are facing an issue with the web app.
The "URL not found" error maybe due to some sort of improper HTTPS configuration.
Please see the following links for how to properly enable a secure connection to your MPS.
Here is the main documentation page for configuring HTTPS connections to MPS:
Please follow the guidance given in the following two links given in the "Topics" section of the main page:
Enable HTTPS:
Configure Client Authentication:
I hope this helps you.
Warm Regards,
Pranjal.
  1 个评论
Mohanad
Mohanad 2023-7-25
编辑:Mohanad 2023-7-25
Does these step allow for generating a server to host the apps on?
I still do not have a seever (webpage link for example https://myURL.mathworks:9988 all i have now is the localhost:9988

请先登录,再进行评论。


Himanshu
Himanshu 2023-8-28
Hello Mohanad,
I understand that you are facing an issue while trying to deploy your MATLAB App Designer app as a web app, and you are encountering an error related to the server URL.
The error occurs because MATLAB's web app server is set to run on "localhost:9988", which is a local address that cannot be accessed by others.
To resolve this issue and deploy your app successfully, you can follow these steps:
  1. Use the MATLAB Compiler to package your App Designer app for deployment. This creates a standalone package that can be deployed on a server.
  2. Deploy the packaged app on a server using MATLAB Web App Server, which is designed for hosting and sharing MATLAB web apps.
  3. Acquire a license for MATLAB Web App Server through MathWorks. This license is necessary to deploy your app on the server.
  4. Configure the server settings, including the hostname, port, and other parameters. Then, publish your packaged app on the server.
  5. Once the app is deployed, you will receive a URL that can be shared with others. This URL will provide access to your app through a web browser.
You can refer to the below documentation to learn more about MATLAB Web App Server, Guide to Deploy Web App and MATLAB Compiler.

类别

Help CenterFile Exchange 中查找有关 Web Apps 的更多信息

产品


版本

R2023a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by