Deploy Flutter Web to Server | Flutter Web Hosting | Flutter Web Deploy [2024 text file updated]

Поділитися
Вставка
  • Опубліковано 22 чер 2021
  • You will learn how to host flutter web app in server. In this case we will use Linux server to host our web application. This is a partial tutorial of a flutter web development tutorial.
    You will learn how to enable flutter web app and build it and deploy to a server. Flutter web deployment could be very daunting for beginners.
    To deploy flutter web to server first you to build the app using the below command
    flutter build web
    Then it will generate flutter compiled file in the /build/web directory. We need to copy the files from build/web and put in the server web directory. You need to create a web directory and put the files there. In general your web directory would be the domain name for accessing it from outside world. To host fltuter web on domain, you need to serve a web server to the application using nodejs. There are other ways too. But in this tutorial we will focus on nodejs server.
    For flutter web publish we will use nodejs helps to access our app from the outside world. This tutorial assumes you have a shared host or dedicated server. After hosting them we visit the flutter web app on url from the browser.
    See the below link for the commands we need to follow to make it up and running
    👍👍👍📕📕(Update at 2024) www.dbestech.com/tutorials/fl...
    The idea is applicable for
    nodejs server, linux server, centos server, localhost, aws server,
    Other flutter web tutorials
    Flutter carousel slider indicator web and mobile
    • Carousel Slider Indica...
    Flutter carousel slider web and mobile
    • Carousel Slider Flutte...
    Flutter responsive navigation bar web and mobile
    • Flutter Web Navigation...
    Flutter Background Image moving
    • Flutter Image Animatio...

КОМЕНТАРІ • 78

  • @FlutterMapp
    @FlutterMapp Рік тому +3

    Thanks man 🔥🔥

    • @dbestech
      @dbestech  Рік тому +2

      Any time!. Thanks for visiting man. I also follow your channel. You are doing a great job.

  • @gob5964
    @gob5964 Рік тому +3

    Hi,
    First of all thx for the work/share ^^
    But second, is it the one and only way to deploy a flutter PWA on a webServer ?
    Do we really have to install all NPM pckgs like cookie-parser, express and morgan ? 0_o
    Or are the step 4 and 5 skippable ?

  • @ahmednishaal9432
    @ahmednishaal9432 9 місяців тому +1

    Great video! But how about installing on docker?

  • @meandmydodge
    @meandmydodge 2 роки тому +7

    This is about Server available in local premises ... Great ...
    How about Deploying Flutter based website in Hosting Company like bluehost, godaddy etc. ?

    • @dbestech
      @dbestech  2 роки тому +1

      You need to have access to their permissions for download and installing nodejs services. Otherwise it won't work.

    • @meandmydodge
      @meandmydodge 2 роки тому +1

      @@dbestech Thanks for quick response ... any youtube or another resource will you recommend to accomplish this task ?

  • @slymanyonga7226
    @slymanyonga7226 Рік тому +8

    How to do this on Windows ?

  • @user-xx9rp4gp9g
    @user-xx9rp4gp9g Рік тому +2

    Hi,
    how to upload web flutter to a hosting with a backend

  • @fatima-cf1bj
    @fatima-cf1bj 2 місяці тому +1

    thank you 😍😍

    • @dbestech
      @dbestech  2 місяці тому +1

      You're welcome 😊

  • @agoodmansaid
    @agoodmansaid Рік тому +2

    Thanks a lot for the tutorial, please reduce the bg music volume. makes it hard to hear

  • @limken1343
    @limken1343 2 роки тому

    I am on a ubuntu 20.04
    I installed apache and am trying to load a site. If I use curl from the server itself it returns. but when I try accessing it through the internet it does not work. I tried many solutions like adding domain and ip to the host file and commands like sudo systemctl enable systemd-networkd
    It is still not working. I am not sure what I am missing any help will be appreciated

    • @dbestech
      @dbestech  2 роки тому

      what error do you get? can you send to me?

    • @limken1343
      @limken1343 2 роки тому

      @@dbestech There is only one error in the console if I use the browser which is (index):6770 crbug/1173575, non-JS module files deprecated.
      If I did a curl from another computer I get : curl: (6) Could not resolve host:
      And a ping gets Ping request could not find host. Please check the name and try again.

    • @chind0na
      @chind0na 7 місяців тому

      @@limken1343Probably an outdated version of NodeJS or JS code.

  • @user-rh1sw6ji6t
    @user-rh1sw6ji6t 11 місяців тому

    嗨,可以出個在GCP上部署的教學嗎😅或是Mac主機本地部署

  • @mahanshiran5037
    @mahanshiran5037 Місяць тому

    hello, thank you for your video. but not enough explanation for step 7, where did that file came from???

    • @dbestech
      @dbestech  Місяць тому

      www.dbestech.com/tutorials/flutter-web-hosting-in-server updated this file

  • @tahirdevlog2047
    @tahirdevlog2047 2 роки тому

    bg sound is high, thanks

    • @dbestech
      @dbestech  2 роки тому

      thanks. I will take care of this next time.

  • @user-uu5ed1qh5n
    @user-uu5ed1qh5n 8 місяців тому

    how to flutter component host on aws

  • @user-et1ix9qp9l
    @user-et1ix9qp9l 4 місяці тому

    i want to deploy in IIS Server. what i have to do for "Step 7" in IIS server point of view with windows OS not Linux.

    • @dbestech
      @dbestech  4 місяці тому

      Haven't tried on IIS though

  • @albertsnow7111
    @albertsnow7111 2 роки тому

    Step 7, Which file be pasted???
    It's no mention the file before step 7 phase.

    • @dbestech
      @dbestech  2 роки тому

      hold on, let me check

    • @dbestech
      @dbestech  2 роки тому

      It's the storage file you need to set the permission

    • @albertsnow7111
      @albertsnow7111 2 роки тому

      @@dbestech Yean. I already success deploy flutter at last night (I'm In BeiJing). I use ubuntu system in my VPS. I need to install apache2. And to vi virtual host file.

    • @albertsnow7111
      @albertsnow7111 2 роки тому

      @@dbestech Thanks for you share. And by the way. I have an idea, use GitHub private repository to replace FTP for sending build file. That's can version control, and no need to zip, ftp service.

    • @dbestech
      @dbestech  2 роки тому

      @@albertsnow7111 Yes. you need that. I am shanghai.

  • @waseemsheikh9545
    @waseemsheikh9545 2 роки тому +2

    Why flutter web takes time to load up intially?

    • @dbestech
      @dbestech  2 роки тому +1

      It loads all the resources at a time. You can use rest api for lazy loading

    • @waseemsheikh9545
      @waseemsheikh9545 2 роки тому

      @@dbestech sometime it takes upto 10 seconds , is there anyway we can load flutter website in less time like we other in other websites

    • @dbestech
      @dbestech  2 роки тому +2

      @@waseemsheikh9545 not really. Cuz it's a problem with flutter web core. medium.com/flutter/optimizing-performance-in-flutter-web-apps-with-tree-shaking-and-deferred-loading-535fbe3cd674 this link may help you. Check it out

    • @waseemsheikh9545
      @waseemsheikh9545 2 роки тому

      @@dbestech thanks

    • @dbestech
      @dbestech  2 роки тому

      @@waseemsheikh9545 Welcome

  • @moustaphakoita4884
    @moustaphakoita4884 2 роки тому

    Hi i wanna know to create an application where people can host there site web.

    • @dbestech
      @dbestech  2 роки тому

      I suggest not to. You have to be a teach giant to do it and invest millions

  • @nikro7239
    @nikro7239 2 роки тому

    How do i create virtualhost? I do not have anything like httpd. please help i do not understand

    • @dbestech
      @dbestech  2 роки тому

      for shared host dont need it. you need it for dedicated server.

    • @nikro7239
      @nikro7239 2 роки тому +1

      @@dbestech I figured it out. Just had to change available-sites in apache2. I think you should have explained that better :

  • @klvnco
    @klvnco 2 роки тому

    is that server running on apache?

    • @dbestech
      @dbestech  2 роки тому +1

      Yes, this one running on apache.

  • @adnannadeem3373
    @adnannadeem3373 Рік тому

    Where did you copy paste the file for creating virtual host

    • @dbestech
      @dbestech  Рік тому +1

      I think I put them in the link, you can find from there

    • @adnannadeem3373
      @adnannadeem3373 Рік тому +1

      @@dbestech yea i get it but where did you paste the file??..my question was where should we paste the virtual host file?

    • @vigneshm5088
      @vigneshm5088 Рік тому

      @@adnannadeem3373 you have ans for that?

    • @chind0na
      @chind0na 7 місяців тому

      @@adnannadeem3373The virtual host file should already exist in your setup. Just add the new host block to that file.

  • @ashokchandra4911
    @ashokchandra4911 11 місяців тому

    Can we run on shared hosting I am using bluehost

    • @dbestech
      @dbestech  11 місяців тому

      If you don't have cpanel you can not. Make sure you have cpenal access using ssh

  • @michaelsullivan1632
    @michaelsullivan1632 4 місяці тому

    Where am I putting this last file for the virtual host?

  • @muhammadadilnaeem1333
    @muhammadadilnaeem1333 Рік тому

    Free domain and hosting in Flutter website or not?

    • @dbestech
      @dbestech  Рік тому

      flutter does not deal with hosting. It's a framework to build web or mobile Hosting is a different issue.

  • @mamenatech
    @mamenatech Рік тому

    can flutter access direct url like /user ?

    • @dbestech
      @dbestech  Рік тому

      Yes. It can

    • @arifalimadina7091
      @arifalimadina7091 Рік тому

      I am getting 404 error

    • @chind0na
      @chind0na 7 місяців тому

      There is a package called RouteMaster. Look it up on pub dev

  • @trueToastedCode
    @trueToastedCode Рік тому

    how do I add ssl

    • @dbestech
      @dbestech  Рік тому

      many different ways to do it. if it's dedicated server, then you have to do on your own. for shared server, hosting provider would help you.

  • @davidagyakwa288
    @davidagyakwa288 Рік тому

    how to add https or security certificate

    • @dbestech
      @dbestech  Рік тому

      that has to do with virtual host configuration. not really with flutter

  • @chitrarajkpaul8223
    @chitrarajkpaul8223 4 місяці тому

    Will this work for mobile applications

    • @dbestech
      @dbestech  4 місяці тому

      nope.

    • @dbestech
      @dbestech  4 місяці тому

      for mobile you need to upload to app store

  • @rustam1337
    @rustam1337 Рік тому

    Is it really needed to put background music in that kind of videos?
    It is totally senceless and even louder then speaker which makes it harder to understand.

  • @user-vc7wl2dn4h
    @user-vc7wl2dn4h 7 місяців тому

    The background music is too loud and distracting.

  • @stressless6467
    @stressless6467 Рік тому

    it just did not work

    • @dbestech
      @dbestech  Рік тому

      what error you got?

    • @stressless6467
      @stressless6467 Рік тому +1

      @@dbestech no error message. The site didnt load

    • @dbestech
      @dbestech  Рік тому

      @@stressless6467 there could be many other server related issues though

    • @stressless6467
      @stressless6467 Рік тому

      @@dbestech can I see a copy of your host file?
      I'm on Mac M1 btw

    • @dbestech
      @dbestech  Рік тому

      @@stressless6467 I did it on Linux

  • @tigeruppercut2000
    @tigeruppercut2000 8 місяців тому

    Can't see.. cropped video