How to Deploy a Flask App to a Linux Server with a Domain Name

แชร์
ฝัง
  • เผยแพร่เมื่อ 5 ม.ค. 2025

ความคิดเห็น • 42

  • @songokussj4cz
    @songokussj4cz ปีที่แล้ว +19

    Very big thumbs up for using gunicorn and not default flask server as others. Nice!

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว +2

      Definitely the more appropriate option. Thanks for watching!

  • @skyricho
    @skyricho 3 หลายเดือนก่อน +2

    Awesome tutorial. Exactly what I was looking for!

  • @sinancetinkaya
    @sinancetinkaya ปีที่แล้ว +15

    thumbs up for centering a text in CSS :)

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว +2

      haha yeah I figured I shouldn't be so lazy to center my basic header text.

  • @marcelochiacchio7727
    @marcelochiacchio7727 2 หลายเดือนก่อน

    I was trying by a long time bro, thanks so much! And your english is too clean, I'm brazilian and got everything that you said!

  • @tadashi-kun4820
    @tadashi-kun4820 8 หลายเดือนก่อน

    It worked like a charm. Runs perfectly fine. Thank you very much!

  • @mahboob82
    @mahboob82 11 หลายเดือนก่อน

    Well organised contents! Thanks for making it easy for us.

  • @curtking70
    @curtking70 ปีที่แล้ว

    Thanks!

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      You're welcome! Thanks for the super thanks!

  • @asmasaduf6257
    @asmasaduf6257 8 หลายเดือนก่อน +1

    when i did gunicorn app:app Iget this error "from gunicorn import util
    File "E:\sid\TF-Image-Classifier-API\venv\Lib\site-packages\gunicorn\util.py", line 8, in
    import fcntl
    ModuleNotFoundError: No module named 'fcntl'"

  • @jazz8932
    @jazz8932 9 หลายเดือนก่อน

    after installing caddy and going to the IP address I see no response?

  • @eboyd53
    @eboyd53 ปีที่แล้ว +5

    Can you please add the notes to your github repository for the video? Unfortunately TH-cam shortened the URL in your two lines making it difficult to copy and paste. I had to click on the two URL to determine what it should have been to continue.

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว +1

      Here you go: github.com/PrettyPrinted/youtube_video_code/tree/master/2023/07/17/How%20to%20Deploy%20a%20Flask%20App%20to%20a%20Linux%20Server%20with%20a%20Domain%20Name

    • @honzabe
      @honzabe 9 หลายเดือนก่อน

      @@prettyprinted I might be missing something but I do not see the notes the OP requested in the document you linked. I also think they could be useful - TH-cam shortened URLs in your notes here so the commands copied from TH-cam do not work unless you reconstruct how they looked like before the shortening. Some people might get confused by it (ehm, "some people", like me).

  • @jakobseitz1176
    @jakobseitz1176 11 หลายเดือนก่อน +2

    note: the curl commands didnt work for me, but caddy still worked fine. But I also used a v-server from netcup

    • @iconjack
      @iconjack 7 หลายเดือนก่อน

      the curl commands in the description got mangled by youtube-you'll have to type them in from the terminal on the screen

  • @dmbrv
    @dmbrv ปีที่แล้ว +3

    Awesome video. I didn't know that Caddy will automatically get a sign certificate from Let's Encrypt

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      Yeah Caddy makes things really simple. Thanks for watching.

  • @benjohnson5897
    @benjohnson5897 6 หลายเดือนก่อน

    Thanks! Very useful, but it reminded me why i simply code and deploy on Replit. I dont have enough patience for all this stuff! 😂

  • @EddiKh
    @EddiKh 6 หลายเดือนก่อน +1

    Is there a tutorial on security configurations and firewall? and great video! exactly what I was looking for

  • @houseofsharks
    @houseofsharks 6 หลายเดือนก่อน

    Hello, i have an oracle free tier instance running ubuntu with some websites (php) hosted (with their own domains) by cloudpanel. If i do exactly like you did. My other websites will stop working?

  • @VictorsTravelvLog
    @VictorsTravelvLog ปีที่แล้ว

    exactly what i needed!

  • @dgoek
    @dgoek ปีที่แล้ว

    Thank you so much this is very useful; I working on my website this contain a payment with paypal and this is working on visual studio code, however when I upload to lightsail server this is not working, I receive an error regarding authetication, however I thinks this is related with networking, maybe I am missing some configuration, any idea ?

  • @marcosoliveira8731
    @marcosoliveira8731 10 หลายเดือนก่อน

    Huuuuge thanks man!

  • @rish9422
    @rish9422 ปีที่แล้ว

    would be this possible on Azure?

  • @eboyd53
    @eboyd53 ปีที่แล้ว

    Thanks for the video and instructions. BTW, you could use ``pkill gunicorn`` to kill the application if the pkill command exists.

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      Thanks, I should have checked if pkill was there. Thanks for watching!

  • @TaylorNelson1
    @TaylorNelson1 11 หลายเดือนก่อน

    Wow so easy. Is gunicorn good enough, by itself, that I do not need to use other hacks via apache and wsgi?

  • @infossil
    @infossil 7 หลายเดือนก่อน

    thank you, worked perfect

  • @y2ksw1
    @y2ksw1 2 หลายเดือนก่อน

    Is there any reason you are using caddy instead of nginx?

    • @prettyprinted
      @prettyprinted  2 หลายเดือนก่อน +1

      I think it's a lot easier to work with. I also like the auto SSL.

  • @shaunsharon6849
    @shaunsharon6849 7 หลายเดือนก่อน

    What about in Windows?

  • @WaldoTheWombat
    @WaldoTheWombat 11 หลายเดือนก่อน +1

    How Anthony, will this work with a Flask app that uses web sockets?

  • @HamzahAl-Hamadani
    @HamzahAl-Hamadani 8 หลายเดือนก่อน

    i love you

  • @tasmaniandaemon
    @tasmaniandaemon 9 หลายเดือนก่อน

    why not nginx

  • @Kennethlumor
    @Kennethlumor ปีที่แล้ว

    Sir thank you for this tutorial. Please I request from you to make a video on how to connect Google auth to flask app. Because as am talking to you right now Google has taken or remove allow third party integration. That is very hard for me to do now. So please and please I'm begging you in the name of God to make a video on that.

    • @prettyprinted
      @prettyprinted  ปีที่แล้ว

      I'll look into Google auth. Thanks for watching!

  • @anony88
    @anony88 ปีที่แล้ว

    Why does my comments keep getting removed on youtube.. 😑

  • @kenisi_thedevilonhigh
    @kenisi_thedevilonhigh 3 หลายเดือนก่อน

    yep, the video creator rabbit holed over monetary capital above $0/second. I don't buy it