Effacer les filtres
Effacer les filtres

Matlab web app server issue

11 vues (au cours des 30 derniers jours)
Mohanad
Mohanad le 18 Juil 2023
Réponse apportée : Himanshu le 28 Août 2023
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

Réponses (2)

Pranjal Saxena
Pranjal Saxena le 25 Juil 2023
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 commentaire
Mohanad
Mohanad le 25 Juil 2023
Modifié(e) : Mohanad le 25 Juil 2023
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

Connectez-vous pour commenter.


Himanshu
Himanshu le 28 Août 2023
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.

Catégories

En savoir plus sur Web Apps dans Help Center et File Exchange

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by