BREAKING:

Flutter – Build and deploy web app

Build web app

  1. Open Project
  2. Run command
    flutter build web
  3. The output is in
    <your_project_folder>/build/web

Try to run

  1. Open folder above (output) in Terminal
  2. Run command
    python3 -m http.server 8000

3. Open this link in Browser
http://localhost:8000/

4. Enjoy your result

Deploy to Hostinger

  1. Login Hostinger with your account
  2. Tạo domain hoặc subdomain mới
  3. Vào trình “Quản lý tập tin”
  4. Upload toàn bộ file trong /build/web vào thư mục public_html.
  5. Enjoy your web.

Post A Comment

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

Leave a Reply