skip to Main Content

I have followed the steps in this article to deploy flutter app as node.js app. My app directory in the server is: home/username/app/app,
and here is what I entered to create node.js app:

enter image description here

and when I visit the web app url that’s what I get:

enter image description here

How to solve it?

2

Answers


  1. Web applications are specially used for server side requests.

    You have to export your web page with the command "flutter build web" and then copy all the files generated and put them into public_html folder.

    Login or Signup to reply.
  2. You need to generate Flutter web build files using the following command. Hit it on your terminal:

    flutter build web
    

    It will generate files at your_project/build/web/ location. You need to upload all the files to cPanel at public_html folder. It has index.html file, which will run in your browser with its dart javascript library. You don’t need any third server with Node.js or python.

    Detailed explanation at: How to Deploy Flutter Web App on cPanel Shared Hosting

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search