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

preview_player
Показать описание
Steps you need to take for a bare minimum linux server deploy with your own custom domain name. Web server: Caddy. App server: Gunicorn

WORK WITH ME👇🏼

✅ Implement features and fix bugs in your app: Live, one-on-one screenshare

💻 Code written in video

Here are the install commands I used in the video:

sudo apt update
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https
sudo apt update
sudo apt install caddy
sudo apt install python3-pip python3-dev build-essential libssl-dev libffi-dev python3-setuptools
sudo apt install python3-venv
Рекомендации по теме
Комментарии
Автор

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

songokussjcz
Автор

thumbs up for centering a text in CSS :)

sinancetinkaya
Автор

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

tadashi-kun
Автор

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

mahboob
Автор

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

dmbrv
Автор

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

EddiKh
Автор

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

benjohnson
Автор

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

jazz
Автор

Can you please add the notes to your github repository for the video? Unfortunately YouTube 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.

eboyd
Автор

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

jakobseitz
Автор

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

eboyd
Автор

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?

houseofsharks
Автор

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

TaylorNelson
Автор

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 <module>
import fcntl
ModuleNotFoundError: No module named 'fcntl'"

asmasaduf
Автор

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

WaldoTheWombat
Автор

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 ?

dgoek
Автор

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.

Kennethlumor
Автор

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

anony