how to deployment dart app to javascript in the server?

Issue

to do with the files in the build/web folder in my dart app to deployed a in the server as Javascript?

I want to deployd my app but as javascript. But i don’t know the correct procedure.

I have configured my project and I called in my localhost

build pub

has generated the folder

build / web

What is the next step to run my dart app as Javascript on the server?

or I should be call build pub on the server?

Solution

You should grab all files inside this build / web folder and put them into static-served folder of your server (for Apache it is often htdocs folder).

Than you should be able to open html file of your app and get app working.

Answered By – Valentyn Shybanov

Answer Checked By – Marie Seifert (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *